diff --git a/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount.py b/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount.py index a0fa78eba..8f32e1c75 100644 --- a/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount.py +++ b/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount.py @@ -29,14 +29,14 @@ def formula(person, period, parameters): dependant_net_income <= p.upper_dependant_income_threshold ) - net_income = max_(0, p.upper_dependant_income_threshold - dependant_net_income) + net_income = max_( + 0, p.upper_dependant_income_threshold - dependant_net_income + ) cohabitating_dependant = person("cohabitating_dependant", period) caregiver_amount = ( - net_income - * income_eligibility - * cohabitating_dependant + net_income * income_eligibility * cohabitating_dependant ) return min_(caregiver_amount, p.maximum_caregiver_amount)