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

Manitoba Education Property Tax Credit #422

Draft
wants to merge 2 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:
- Manitoba education property tax credit amount.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides different tax credits according to different age groups.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description: Manitoba provides the basic tax credits for filters at or above this age threshold.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this file to "age_eligibility.yaml"

values:
2022-01-01: 65
metadata:
unit: year
label: Manitoba tax credit diference with people with different ages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label: Manitoba basic tax credit eligible age

reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf # page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides this specific percentage rate to education property tax credit.
values:
2022-01-01: 0.625
metadata:
unit: currency-CAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unit: /1

label: Manitoba education property tax credit rate
reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf #page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides this basic credit amount for either the head or the spouse having age of older than or equal to 65.
values:
2022-01-01: 687.5
metadata:
unit: currency-CAD
label: Manitoba basic credit amount of education property tax for either the head or the spouse having eligible age
reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf #page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides this basic credit amount for both head and spouse having age of younger than 65.
values:
2022-01-01: 437.5
metadata:
unit: currency-CAD
label: Manitoba basic credit amount of education property tax for both head and spouse having ineligible age
reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf #page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides this specific percentage rate to family income.
values:
2022-01-01: 0.00625
metadata:
unit: currency-CAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unit: /1

label: Manitoba family income rate percentage
reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf #page=1 & page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides the certain time amount for education property tax credit calculations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description: Manitoba the number of days in a legal year.

values:
2022-01-01: 365
metadata:
unit: year
label: Manitoba time amount for education property tax credit calculations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label: Manitoba the number of days in a legal year

reference:
- title: Manitoba Information Guide Manitoba Credits Form MB479
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5007-tc/5007-tc-22e.pdf # page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Education property tax credit with eligible age amount
period: 2022
input:
people:
head:
age: 70
spouse:
age: 72
household:
members: [head, spouse]
province_code: MB
education_property_tax_received: 2_000
net_school_tax: 3_000
adjusted_family_net_income: 100_000
days_owning_education_property: 1_825
output:
mb_education_property_tax_credit_amount: 187.5

- name: Education property tax credit with ineligible age amount
period: 2022
input:
people:
head:
age: 60
spouse:
age: 62
household:
members: [head, spouse]
province_code: MB
education_property_tax_received: 2_000
net_school_tax: 3_000
adjusted_family_net_income: 100_000
days_owning_education_property: 1_825
output:
mb_education_property_tax_credit_amount: 187.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_canada.model_api import *


class days_owning_education_property(Variable):
value_type = float
entity = Household
label = "Number of days at addresses of education property owned"
unit = CAD
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
from policyengine_canada.model_api import *


class mb_education_property_tax_credit_amount(Variable):
value_type = float
entity = Household
label = "Manitoba education property tax credit"
unit = CAD
definition_period = YEAR
defined_for = ProvinceCode.MB

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add legal reference here.

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

person = household.members

age = person("age", period)
age_eligible = age >= p.age_amount
age_ineligible = ~age_eligible
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this. You can represent it by using "~age_eligible" directly.


property_tax = p.applicable_percentage * (
household("education_property_tax_received", period)
+ household("net_school_tax", period)
)

# household net income
net_income = household("adjusted_family_net_income", period)

eligible_age_credit = max_(1,age_eligible) * (
p.basic_credit_age_eligible
- p.family_income_applicable_rate * net_income
)
eligible_age_credit_max = max_(
eligible_age_credit, p.basic_credit_age_ineligible
)

ineligible_age_credit = max_(1,age_ineligible) * p.basic_credit_age_ineligible

time_at_education_property = (
household("days_owning_education_property", period) / p.time_amount
)


education_property_tax_credit_amount = max_(
0,
(
min_(
eligible_age_credit_max * time_at_education_property,
property_tax,
)
)
- household("education_property_tax_received", period),
)

return household.sum(education_property_tax_credit_amount)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_canada.model_api import *


class education_property_tax_received(Variable):
value_type = float
entity = Household
label = "Education property taxes received"
unit = CAD
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_canada.model_api import *


class net_school_tax(Variable):
value_type = float
entity = Household
label = "Net school tax paid"
unit = CAD
definition_period = YEAR
Loading