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 Pension Income Amount #405

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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 pension income amount.
sqw0418 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: Yukon provides this maximum pension income amount.
values:
2022-01-01: 2_000
metadata:
unit: currency-CAD
label: Yukon pension income max amount
reference:
- title: YT428 2022 - line 25
sqw0418 marked this conversation as resolved.
Show resolved Hide resolved
# Credit is not specified in the Yukon Income Tax Act
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf#page1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: Below Maximum Pension Amount
period: 2022
input:
province_code: YT
pension_and_savings_plan_income: 10_000
output:
yt_pension_amount: 2_000

- name: Above Maximum Pension Amount
period: 2022
input:
province_code: YT
pension_and_savings_plan_income: 0
output:
yt_pension_amount: 0

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from policyengine_canada.model_api import *


class yt_pension_amount(Variable):
value_type = float
entity = Person
label = "Yukon Pension Amount"
definition_period = YEAR
defined_for = ProvinceCode.YT

def formula(person, period, parameters):
p = parameters(period).gov.provinces.yt.tax.income.pension_income

pension_and_savings_income = person(
"pension_and_savings_plan_income", period
)

return min_(p.amount, pension_and_savings_income)