Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
sqw0418 committed Aug 16, 2023
1 parent 4ad5610 commit 56ef2bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ metadata:
unit: currency-CAD
label: Yukon employment benefit amount
reference:
- title: Canada Employment Amount Benefit for Yukon -Page 33
href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf
- title: Canada Employment Amount Benefit for Yukon
- title: Yukon Tax Form YT428 - Line 58310
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf#page=1
#Credit is not mentioned in the Yukon income tax act
- title: Government of Canada - Yukon Information Guide
href: https://www.canada.ca/en/revenue-agency/services/forms-publications/tax-packages-years/general-income-tax-benefit-package/yukon/5011-pc/information-residents-yukon.html#P4_58310
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
period: 2022
input:
province_code: YT
employment_income: 30000
canada_employment_amount: 30_000
output:
yt_employment_amount: 1_287

- name: tax return with no income
period: 2022
input:
province_code: YT
employment_income: 0
canada_employment_amount: 0
output:
yt_employment_amount: 0

- name: tax return with income under maximum amount
period: 2022
input:
province_code: YT
employment_income: 1_000
canada_employment_amount: 1_000
output:
yt_employment_amount: 1_000

Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ class yt_employment_amount(Variable):
reference = "https://www.canada.ca/en/revenue-agency/services/forms-publications/tax-packages-years/general-income-tax-benefit-package/yukon/5011-pc/information-residents-yukon.html#P4_58310"

def formula(person, period, parameters):
max_amount = parameters(
p = parameters(
period
).gov.provinces.yt.benefits.yt_employment_amount.yt_employment_amount

employment_income = person("employment_income", period)

return min_(employment_income, max_amount)
).gov.provinces.yt.ta.income.credits.employment_amount
canada_employment_amount = person("cananda_employment_amount", period)
return min_(canada_employment_amount, p.amount)

0 comments on commit 56ef2bb

Please sign in to comment.