Skip to content
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Yukon age amount.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: The eligible age for getting the age amount of Yukon Personal Tax Credits Return.
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
values:
2022-01-01: 65
Comment thread
RuoqiTan marked this conversation as resolved.
metadata:
unit: year
label: Yukon age amount eligible age
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
Comment thread
RuoqiTan marked this conversation as resolved.
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Comment thread
PavelMakarchuk marked this conversation as resolved.
Outdated
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Yukon base amount of one's net income for the age amount of Yukon Personal Tax Credits Return.
values:
2022-01-01: 42_335
metadata:
unit: currency-CAD
label: Yukon age amount base
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Yukon Maximum amount that one can get for the age amount of Yukon Personal Tax Credits Return.
values:
2022-01-01: 8_396
metadata:
unit: currency-CAD
label: Yukon age amount maximum amount
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Yukon maximum net income for one to get the age amount of Yukon Personal Tax Credits Return.
values:
2022-01-01: 98_309
metadata:
unit: currency-CAD
label: Yukon age amount maximum net income
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Yukon Maximum amount that one can get for the age amount of Yukon Personal Tax Credits Return.
values:
2022-01-01: 8_396
metadata:
unit: currency-CAD
label: Yukon age amount maximum amount
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Comment thread
RuoqiTan marked this conversation as resolved.
Comment thread
RuoqiTan marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Rate of the age amount of Yukon Personal Tax Credits Return.
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
values:
2022-01-01: 0.15
metadata:
unit: /1
label: Yukon age amount applicable rate
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Not eligible for age
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
period: 2022
input:
province_code: YT
individual_net_income: 10_000
age: 60
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
output:
yt_age_amount: 0

- name: Not eligible for net income
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
period: 2022
input:
province_code: YT
individual_net_income: 100_000
age: 70
output:
yt_age_amount: 0

- name: Eligible & maximum age amount (net income < base amount)
period: 2022
input:
province_code: YT
individual_net_income: 10_000
age: 70
Comment thread
RuoqiTan marked this conversation as resolved.
Outdated
output:
yt_age_amount: 8_396

- name: Eligible & net income between base amount and maximum amount (8396-(62335-42335)*0.15 = 5396)
period: 2022
input:
province_code: YT
individual_net_income: 62_335
age: 70
output:
yt_age_amount: 5_396
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from policyengine_canada.model_api import *


class yt_age_amount(Variable):
value_type = float
entity = Person
label = "Yukon age amount"
definition_period = YEAR
defined_for = ProvinceCode.YT

def formula(person, period, parameters):
income = person("individual_net_income", period)
age = person("age", period)
p = parameters(period).gov.provinces.yt.tax.income.credits.age_amount
reduction = (
(income > p.base_amount) * (income - p.base_amount) * p.rate
)
return (
(age >= p.age)
* (income < p.maximum_net_income)
* (p.maximum_amount - reduction)
)