diff --git a/changelog_entry.yaml b/changelog_entry.yaml index 673fb484b..a80d1a8f2 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -1,3 +1,4 @@ - bump: minor changes: - added: New Brunswick Spouse or Common-law Partner base amount. \ No newline at end of file + added: + - New Brunswick Spouse or Common-law Partner base amount. \ No newline at end of file diff --git a/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/base_amount.yaml b/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/base_amount.yaml index dd8e66ec3..2d6cee8ca 100644 --- a/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/base_amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/base_amount.yaml @@ -6,7 +6,7 @@ values: metadata: unit: currency-CAD period: year - label: New Brunswick Spouse or Common-law Partner base Amount + label: New Brunswick Spouse or Common-law Partner base amount reference: - title: Worksheet for the 2022 New Brunswick Personal Tax Credits Return href: https://www.cchwebsites.com/content/pdf/tax_forms/ca/en/td1nbws_en.pdf#page=1 diff --git a/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/max_amount.yaml b/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/max_amount.yaml index 4e17ef1c1..6d313fce3 100644 --- a/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/max_amount.yaml +++ b/policyengine_canada/parameters/gov/provinces/nb/tax/income/credits/spouse_or_common_law_partner_amount/max_amount.yaml @@ -6,7 +6,7 @@ values: metadata: unit: currency-CAD period: year - label: New Brunswick Spouse or Common-law Partner max Credit + label: New Brunswick Spouse or Common-law Partner max credit reference: - title: Worksheet for the 2022 New Brunswick Personal Tax Credits Return href: https://www.cchwebsites.com/content/pdf/tax_forms/ca/en/td1nbws_en.pdf#page=1 diff --git a/policyengine_canada/variables/gov/provinces/nb/tax/income/nb_spouse_and_common_law_partner_amount_credit.py b/policyengine_canada/variables/gov/provinces/nb/tax/income/nb_spouse_and_common_law_partner_amount_credit.py index b10a1a42a..090dfc7be 100644 --- a/policyengine_canada/variables/gov/provinces/nb/tax/income/nb_spouse_and_common_law_partner_amount_credit.py +++ b/policyengine_canada/variables/gov/provinces/nb/tax/income/nb_spouse_and_common_law_partner_amount_credit.py @@ -13,5 +13,5 @@ def formula(household, period, parameters): spouse_income = add(household, period, ["spouse_income"]) reduced_amount = max_(p.base_amount - spouse_income, 0) - return min(p.max_credit, reduced_amount) + return min_(p.max_credit, reduced_amount)