From 612665f9c73590fd6b26983ad68a0a1e3ceee950 Mon Sep 17 00:00:00 2001 From: okeyiii <96802936+okeyiii@users.noreply.github.com> Date: Wed, 10 Jan 2024 05:15:00 +0000 Subject: [PATCH] Nova Scotia Pension Income Amount Fixes #473 Add details of reference --- .../ns/tax/income/credits/pension_income_amount/cap.yaml | 2 +- .../ns/tax/income/credits/ns_pension_income_amount.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 )