Skip to content

Commit

Permalink
Nova Scotia Age Amount Supplement
Browse files Browse the repository at this point in the history
Fix PolicyEngine#455
Add a new check for age eligibility
  • Loading branch information
okeyiii committed Dec 24, 2023
1 parent e73b3c0 commit 8dfc00c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
- name: Nova Scotia Age amonut supplement; eligible age with eligible taxable income below 25_000
period: 2023
input:
province_code: NS
age: 65
ns_taxable_income: 24_999
ns_age_amount_supplement_eligible: true
output:
ns_age_amount_supplement: 1_465

- name: Nova Scotia Age amonut supplement; eligible age with eligible taxable income between 25_000 and 75_000
period: 2023
input:
province_code: NS
age: 65
ns_taxable_income: 65_000
ns_age_amount_supplement_eligible: true
output:
ns_age_amount_supplement: 293

- name: Nova Scotia Age tax credit; eligible age with ineligible taxable income more than 75_000
period: 2023
input:
province_code: NS
age: 65
ns_taxable_income: 75_001
ns_age_amount_supplement_eligible: true
output:
ns_age_amount_supplement: 0

- name: Nova Scotia Age tax credit; ineligible age with eligible taxable income
period: 2023
input:
province_code: NS
age: 64
ns_taxable_income: 24_999
ns_age_amount_supplement_eligible: false
output:
ns_age_amount_supplement: 0

- name: Nova Scotia Age tax credit; ineligible age with ineligible taxable income
period: 2023
input:
province_code: NS
age: 64
ns_taxable_income: 75_001
ns_age_amount_supplement_eligible: false
output:
ns_age_amount_supplement: 0
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ns_age_amount_supplement(Variable):
label = "Nova Scotia Age Amount Supplement"
unit = CAD
definition_period = YEAR
defined_for = ns_age_amount_supplement_eligible
defined_for = "ns_age_amount_supplement_eligible"
reference = (
"https://hr.acadiau.ca/files/sites/hr/Payroll/Pensions%20&%20Benefits/NS_TD1_2022.pdf#page=1",
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ns-ws/td1ns-ws-23e.pdf#page=1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@


class ns_age_amount_supplement_eligible(Variable):
value_type = float
value_type = bool
entity = Person
label = "Nova Scotia Age Amount Supplement Eligible"
unit = CAD
label = "Eligible for the Nova Scotia Age Amount Supplement"
definition_period = YEAR
defined_for = ProvinceCode.NS
reference = (
Expand Down

0 comments on commit 8dfc00c

Please sign in to comment.