Skip to content

Commit

Permalink
added lower higher age eligibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SirMalamute committed May 11, 2024
1 parent 2e425e8 commit f3151b4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Alberta limits its Child and Family Benefit to people above this age (who are not disabled).
values:
2022-01-01: 65
metadata:
unit: year
label: Alberta child and Family Benefit adult dependant age eligibility
reference:
- title: Province of Alberta - Alberta Child and Family Benefit (2022)
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-22e.pdf#page=1
- title: Province of Alberta - Alberta Child and Family Benefit (2023)
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf#page=1
- title: Province of Alberta - Alberta Personal Income Tax Act, RSA 2000, Division 4
href: https://www.canlii.org/en/ab/laws/stat/rsa-2000-c-a-30/latest/rsa-2000-c-a-30.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Alberta limits its Child and Family Benefit to people above this age.
description: Alberta limits its Child and Family Benefit to people above this age and disabled.
values:
2022-01-01: 18
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def formula(person, period, parameters):

# Whether the person is dependant (65 or older/ disabled)
age = person("age", period)
is_dependant = (age >= 65) | (
is_dependant = (age >= p.higher_age_eligiblity) | (
person("age", period)
>= p.age_eligibility & person("is_disabled", period)
>= p.lower_age_eligibility & person("is_disabled", period)
)
dependant_net_income = (
person("individual_net_income", period) * is_dependant
Expand Down

0 comments on commit f3151b4

Please sign in to comment.