Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
karenlilr committed Jul 26, 2024
1 parent f9bc394 commit aadd156
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,6 @@
output:
nb_spouse_and_common_law_partner_amount_credit: 9_741

- name: Spouse income of $10,000
period: 2023
input:
province_code: NB
spouse_income: 10_000
output:
nb_spouse_and_common_law_partner_amount_credit: 741

- name: Capped at 0
period: 2023
input:
province_code: AB
spouse_income: 40_000
output:
nb_spouse_and_common_law_partner_amount_credit: 0

parameters:
gov:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ def formula(household, period, parameters):

spouse_income = add(household, period, ["spouse_income"])
reduced_amount = max_(base_amount - spouse_income, 0)
return min(max_credit, reduced_amount)

0 comments on commit aadd156

Please sign in to comment.