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 Tuition and Education credit amount #337

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a5dd2b2
Manitoba Tuition and Education credit amount
laviniawo Jun 12, 2023
10eba5a
Manitoba Tuition and Education credit amount
laviniawo Jun 13, 2023
8f5220a
Manitoba Tuition and Education credit amount
laviniawo Jun 20, 2023
0aa5f70
Manitoba Tuition and Education credit amount
laviniawo Jun 21, 2023
38c8e4e
make format
laviniawo Jun 22, 2023
9ae0c18
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
laviniawo Aug 7, 2023
fa403fb
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
39cac41
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
66a84e6
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
60e10ad
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
07f183f
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
8fb2d97
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
dc8b98b
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
b0a8aab
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
2b325cf
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
4bd2aae
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
41c4a04
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
b4a035d
Update policyengine_canada/parameters/gov/provinces/mb/tax/income/cre…
laviniawo Aug 8, 2023
ce4f91b
reference page number added
laviniawo Aug 8, 2023
a4a512b
some adjustments made
laviniawo Aug 14, 2023
8e870fb
updates
laviniawo Aug 14, 2023
9c58668
reference added, parameter values updated
laviniawo Aug 21, 2023
0ed276a
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
laviniawo Sep 3, 2023
9f77797
modifications
laviniawo Sep 3, 2023
5d4f885
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
laviniawo Sep 13, 2023
09bbc72
resolve comments
laviniawo Sep 13, 2023
7fe1eb3
Merge branch
laviniawo Oct 3, 2023
f55f18a
requested changes fixed
laviniawo Oct 3, 2023
602aa61
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
laviniawo Nov 22, 2023
534b032
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
laviniawo Jan 31, 2024
8b3ea8f
merge branch
laviniawo Feb 3, 2024
0136b96
fix
laviniawo Feb 3, 2024
2965724
fixes on rate calculations
laviniawo Feb 3, 2024
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
5 changes: 5 additions & 0 deletions changelog_entry.yaml
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- bump: minor
changes:
added:
- Manitoba Tuition and Education Amounts (full-time and part-time) Tax Credit.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
date: 2023-06-12
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: Manitoba student tuition amount eligibility for accepting credit.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 100
metadata:
unit: currency-CAD
label: Manitoba students benefit eligibility
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Government of Canada - Manitoba Information Guide
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf

laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides personal tax credit returns to full time student at educational institutions.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 4800 #400/month * 12
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
label: Manitoba credit for full-time students
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Government of Canada - Manitoba Information Guide
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides personal tax credit returns to disabled part time student at educational institutions.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 4800 #400/month * 12
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
label: Manitoba credit for disabled part-time students
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Government of Canada - Manitoba Information Guide
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Manitoba provides personal tax credit returns to non-disabled part time student at educational institutions.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 1440 #120/month * 12
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
label: Manitoba credit for non-disabled part-time students
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Government of Canada - Manitoba Information Guide
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
- name: Manitoba students credit tuition ineligible
period: 2023
input:
province_code: MB
tuition_expenses: 50
output:
mb_tuition_amount_credit: 0

- name: Manitoba students credit tuition eligible (Full time students)
period: 2023
input:
province_code: MB
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
is_full_time_student: true
tuition_expenses: 20_000
output:
mb_tuition_amount_credit: 24_800 # 20_000 + 4_800 = 24_800

- name: Manitoba students credit tuition eligible (Part time students with disabilities)
period: 2023
input:
province_code: MB
is_full_time_student: false
is_disabled: true
tuition_expenses: 20_000
output:
mb_tuition_amount_credit: 24_800 # 20_000 + 4_800 = 24_800


- name: Manitoba students credit tuition eligible (Part time students without disabilities)
period: 2023
input:
province_code: MB
is_full_time_student: false
is_disabled: false
tuition_expenses: 20_000
output:
mb_tuition_amount_credit: 21_440 # 20_000 + 1_440 = 21_440
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from policyengine_canada.model_api import *

class mb_tuition_amount_credit(Variable):
value_type = float
entity = Person
label = "Manitoba tuition amount credit"
definition_period = YEAR
defined_for = ProvinceCode.MB
laviniawo marked this conversation as resolved.
Show resolved Hide resolved

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

tuition = person("tuition_expenses", period)
Copy link
Contributor

Choose a reason for hiding this comment

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

the legal code says it's divided by the lowest federal marginal rate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The legal code differes from the form.

tuition_eligible = tuition > p.eligible_tuition_amount

# check if full-time student
full_time = person("is_full_time_student", period)
part_time = ~full_time
laviniawo marked this conversation as resolved.
Show resolved Hide resolved

# check if disabled
disabled = person("is_disabled", period)
nondisabled = ~disabled
laviniawo marked this conversation as resolved.
Show resolved Hide resolved

return tuition_eligible * (tuition + full_time * p.full_time_students_amount + part_time * nondisabled * p.part_time_students_amount + part_time * disabled * p.part_time_disabled_students_amount)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from policyengine_canada.model_api import *


class is_full_time_student(Variable):
value_type = bool
entity = Person
label = "Is full time student"
definition_period = YEAR