Skip to content

Commit

Permalink
Yukon Medical Expenses
Browse files Browse the repository at this point in the history
  • Loading branch information
sqw0418 committed Aug 23, 2023
1 parent 9be29e6 commit a3a9b87
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ metadata:
label: Yukon Medical Expenses
reference:
- title: Yukon Tax-Medical Expenses
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf#page=2

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ values:
2022-01-01: 0.03
metadata:
unit: /1
label: Yukon Medical Expenses Applicable Rate
label: Yukon Medical Expenses credit applicable rate
reference:
- title: Yukon Tax-Medical Expenses
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5011-c/5011-c-22e.pdf#page=2
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
- name: Zero Medeical Expenses of Net Income over Maximum Amount
- name: Zero Medical Expenses of Net Income over Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 0
medical_expenses: 0
household_net_income: 10_000_000_000
output:
yt_medical_expenses: 0

- name: Zero Medeical Expenses of Net Income below Maximum Amount
- name: Zero Medical Expenses of Net Income below Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 0
medical_expenses: 0
household_net_income: 100
output:
yt_medical_expenses: 0

- name: Medeical Expenses of Net Income below Maximum Amount
- name: Medical Expenses of Net Income below Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 10_000
medical_expenses: 10_000
household_net_income: 100
output:
yt_medical_expenses: 9_997

- name: Medeical Expenses of Net Income over Maximum Amount
- name: Medical Expenses of Net Income over Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 4_000
medical_expenses: 4_000
household_net_income: 10_000_000_000
output:
yt_medical_expenses: 1_521
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ def formula(household, period, parameters):
period
).gov.provinces.yt.tax.income.credits.medical_expenses

claimed_medical_expenses = household(
"household_medical_expenses", period
)
claimed_medical_expenses = household("medical_expenses", period)
net_income = household("household_net_income", period)
medical_expenses_rate = p.rate

applicable_amount = min_(
p.max_amount, net_income * medical_expenses_rate
)

total_amount = claimed_medical_expenses - applicable_amount
return max_(claimed_medical_expenses - applicable_amount, 0)

This file was deleted.

0 comments on commit a3a9b87

Please sign in to comment.