forked from PolicyEngine/policyengine-canada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b85995c
commit 4fae5bd
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
policyengine_canada/variables/gov/provinces/nb/tuition/nb_tuition.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
# 1 2 3 4 5 6 7 8 9 10 | ||
# 1 unused_amont | ||
# 2 amount from line 9 of federal s 11 | ||
# 3 1+2 | ||
# 4 if value<=44887 line 26000 | ||
# else (line8 in From NB428)/0.094 | ||
# 5 line 31 from form NB428 | ||
# 6 max(0, 4-5) | ||
# 7 min((1),(6)) | ||
# 8 (6-7) | ||
# 9 min(2,8) | ||
# 10 (7+9) | ||
# 11 (3) | ||
# 12 (10) | ||
# 13 (11-12) | ||
# if transfer: | ||
# 14 min(5000,(2)) | ||
# 15 (9) | ||
# 16 max(0,(14)-(15)) | ||
# 17 input the provincial amount | ||
# 18 (13)-(17) | ||
# else: | ||
# 18 (13) | ||
|
||
class nb_tuition(Variable): | ||
value_type = float | ||
entity = Tution | ||
label = "New Brunswick tuition amounts" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = "https://www.canada.ca/en/revenue-agency/services/tax/individuals/frequently-asked-questions-individuals/canadian-income-tax-rates-individuals-current-previous-years.html" | ||
defined_for = ProvinceCode.NB | ||
|
||
def formula(person, period, parameters): | ||
income = person("nb_taxable_income", period) | ||
p = parameters(period).gov.provinces.nb.tax.income.rate | ||
return p.calc(income) |