From 2158717a5c82a45591be92856ea72c0258d4bb9b Mon Sep 17 00:00:00 2001 From: SirMalamute Date: Mon, 1 Jul 2024 14:44:03 +0000 Subject: [PATCH] format --- .../provinces/ab/tax/credits_return/ab_caregiver_amount.py | 4 +++- .../ab/tax/credits_return/ab_caregiver_amount_eligible.py | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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 5e1d4dc85..0ca648765 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 @@ -18,7 +18,9 @@ def formula(person, period, parameters): # Whether the person is eligible or not (income based) net_income = max_( - 0, p.upper_dependant_income_threshold - person("ab_dependant_net_income", period) + 0, + p.upper_dependant_income_threshold + - person("ab_dependant_net_income", period), ) cohabitating_dependant = person("cohabitating_dependant", period) diff --git a/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount_eligible.py b/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount_eligible.py index f7c3fb156..b0e33c1bf 100644 --- a/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount_eligible.py +++ b/policyengine_canada/variables/gov/provinces/ab/tax/credits_return/ab_caregiver_amount_eligible.py @@ -14,9 +14,8 @@ def formula(person, period, parameters): period ).gov.provinces.ab.tax.income.credits.credits_return - dependant_net_income = person("ab_dependant_net_income", period) * eligible_dependant - - return ( - dependant_net_income <= p.upper_dependant_income_threshold + dependant_net_income = ( + person("ab_dependant_net_income", period) * eligible_dependant ) + return dependant_net_income <= p.upper_dependant_income_threshold