Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yukon Age Amount #294

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 18 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,14 @@
description: Yukon provides the age amount credit for filers above this age.
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved

values:
2023-01-01: 65
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: year
label: Yukon age amount eligible age
reference:
- title: Worksheet for the Yukon 2023 Personal Tax Credits Return
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
- title: Income Tax Act
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
- title: Worksheet for the Yukon 2022 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: Yukon provides this maximum net income for one to get under the age amount credit.
values:
2022-01-01: 92_480
2023-01-01: 98_309
metadata:
unit: currency-CAD
label: Yukon age amount income threshold

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
- title: Income Tax Act
href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf
- title: Worksheet for the Yukon 2022 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: Yukon provides this maximum amount under the age amount credit.
values:
2022-01-01: 7_898
2023-01-01: 8_396
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
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
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
- title: Income Tax Act
href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf
- title: Worksheet for the Yukon 2022 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
description: Yukon provides this rate under the age amounhttps://ruoqitan-didactic-engine-gvx7v4694ppcp47x.github.dev/t credit.
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
brackets:
- threshold:
2022-01-01: 0
rate:
2022-01-01: 0
- threshold:
2022-01-01: 39_826
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
2023-01-01: 42_335
rate:
2022-01-01: 0.15

metadata:
type: marginal_rate
threshold_unit: currency-CAD
rate_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
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
- title: Income Tax Act
href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
- title: Worksheet for the Yukon 2022 Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Not eligible for age amount
period: 2023
input:
province_code: YT
individual_net_income: 10_000
age: 64
output:
yt_age_amount: 0

- name: Not eligible through net income
period: 2023
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: 2023
input:
province_code: YT
individual_net_income: 10_000
age: 70
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
output:
yt_age_amount: 8_396

- name: Eligible & net income between base amount and maximum amount (8396-(62335-42335)*0.15 = 5396)
period: 2023
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,20 @@
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 = p.rate.calc(income)
reduced_amount = max_(p.maximum_amount - reduction, 0)
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
age_eligible = age >= p.age
income_eligible = income < p.income_threshold
RuoqiTan marked this conversation as resolved.
Show resolved Hide resolved
eligible = age_eligible & income_eligible
return eligible * reduced_amount