diff --git a/policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/pension_income_amount/cap.yaml b/policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/pension_income_amount/cap.yaml index 12f2bbe45..74afe880c 100644 --- a/policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/pension_income_amount/cap.yaml +++ b/policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/pension_income_amount/cap.yaml @@ -6,7 +6,7 @@ metadata: period: year label: Nova Scotia pension income amount cap reference: - - title: 2022 Nova Scotia Personal Tax Credits Return + - title: 2022 Nova Scotia Personal Tax Credits Return Line 3 href: https://hr.acadiau.ca/files/sites/hr/Payroll/Pensions%20&%20Benefits/NS_TD1_2022.pdf#page=1 - title: 2022 Worksheet NS428 href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5003-c/5003-c-22e.pdf#page=1 diff --git a/policyengine_canada/variables/gov/provinces/ns/tax/income/credits/ns_pension_income_amount.py b/policyengine_canada/variables/gov/provinces/ns/tax/income/credits/ns_pension_income_amount.py index 553c48b87..29fe0544d 100644 --- a/policyengine_canada/variables/gov/provinces/ns/tax/income/credits/ns_pension_income_amount.py +++ b/policyengine_canada/variables/gov/provinces/ns/tax/income/credits/ns_pension_income_amount.py @@ -15,9 +15,12 @@ class ns_pension_income_amount(Variable): ) def formula(person, period, parameters): - cap = parameters( + p = parameters( period - ).gov.provinces.ns.tax.income.credits.pension_income_amount.cap + ).gov.provinces.ns.tax.income.credits.pension_income_amount + + cap = p.cap + pension_income_amount = person( "pension_and_savings_plan_income", period )