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 Medical Expenses Credit #349

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
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 medical expense credit.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Yukon allows for the following maximum amount under the medical expense credit.
values:
2022-01-01: 2_479
metadata:
unit: currency-CAD
label: Yukon medical expense credit max amount
# Credit is not mentioned in the in Yukon Income Tax Act
reference:
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
- title: Yukon Tax-Medical Expenses
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
@@ -0,0 +1,10 @@
description: Yukon multiplies the medical expenses by the following rate under the medical expenses tax credit.
values:
2022-01-01: 0.03
metadata:
unit: /1
label: Yukon Medical Expenses credit applicable rate
# Credit is not mentioned in the in Yukon Income Tax Act
reference:
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
- title: Yukon Tax-Medical Expenses
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
@@ -0,0 +1,35 @@
- name: Zero Medical Expenses of Net Income over Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 0
household_net_income: 10_000_000_000
output:
yt_medical_expense_credit: 0

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

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

- name: Medical Expenses of Net Income over Maximum Amount
period: 2022
input:
province_code: YT
household_medical_expenses: 4_000
household_net_income: 10_000_000_000
output:
yt_medical_expense_credit: 1_521
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from policyengine_canada.model_api import *


class yt_medical_expense_credit(Variable):
value_type = float
entity = Household
label = "Yukon Medical Expense Credit"
definition_period = YEAR
defined_for = ProvinceCode.YT

def formula(household, period, parameters):
p = parameters(
period
).gov.provinces.yt.tax.income.credits.medical_expense

claimed_medical_expenses = household(
"household_medical_expenses", period
)
net_income = household("household_net_income", period)
medical_expenses_rate = p.rate
sqw0418 marked this conversation as resolved.
Show resolved Hide resolved

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

return max_(claimed_medical_expenses - applicable_amount, 0)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_canada.model_api import *


class household_medical_expenses(Variable):
sqw0418 marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = Household
label = "Household medical expenses"
unit = CAD
definition_period = YEAR