-
Notifications
You must be signed in to change notification settings - Fork 35
Alberta Caregiver Amount #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
10e6588
d8b6879
fdd9a60
ee7dc1f
74dbb83
3f6d0d8
dc870ec
9e990a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - bump: minor | ||
| changes: | ||
| added: | ||
| - Alberta Caregiver Amount. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| description: Alberta limits its Child and Family Benefit to people above this age. | ||
| values: | ||
| 2023-01-01: 18 | ||
| metadata: | ||
| unit: year | ||
| label: Alberta child and Family Benefit child age eligibility | ||
| reference: | ||
| - title: Province of Alberta - Alberta Child and Family Benefit | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf | ||
|
Kenyaokun marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| description: Alberta Lower Income threshold for dependants. | ||
|
Kenyaokun marked this conversation as resolved.
Outdated
|
||
| values: | ||
| 2023-01-01: 19_331 | ||
| metadata: | ||
| unit: currency-CAD | ||
| label: Alberta Dependent Lower Income Threshold | ||
|
Kenyaokun marked this conversation as resolved.
Outdated
|
||
| reference: | ||
| - title: Government of Canada - Alberta Caregiver Amount | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| description: Alberta Maximum Caregiver Amount | ||
| values: | ||
| 2023-01-01: 12_158 | ||
| metadata: | ||
| unit: currency-CAD | ||
| label: Alberta Maximum Caregiver Amount | ||
| reference: | ||
| - title: Government of Canada - Alberta Caregiver Amount | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| description: Alberta Upper Income Threshold for dependants. | ||
| values: | ||
| 2023-01-01: 31_489 | ||
| metadata: | ||
| unit: currency-CAD | ||
| label: Alberta Dependant Upper Income Threshold | ||
| reference: | ||
| - title: Government of Canada - Alberta Caregiver Amount | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| - name: Dependant Over 18 with net income between 19,331 and 31,489 | ||
| period: 2023 | ||
| input: | ||
| age: 19 | ||
| is_disabled: true | ||
| individual_net_income: 20_000 | ||
| province_code: AB | ||
| output: | ||
| ab_caregiver_amount: 11_489 | ||
|
|
||
| - name: Dependant Over 18 with net income below 19,331 | ||
| period: 2023 | ||
| input: | ||
| age: 19 | ||
| is_disabled: true | ||
| individual_net_income: 10_000 | ||
| province_code: AB | ||
| output: | ||
| ab_caregiver_amount: 12_158 | ||
|
|
||
| - name: Dependant Over 65 with net income below 19,331 | ||
| period: 2023 | ||
| input: | ||
| is_parent_or_grandparent: true | ||
| individual_net_income: 10_000 | ||
| province_code: AB | ||
| output: | ||
| ab_caregiver_amount: 12_158 | ||
|
|
||
| - name: Dependant Over 65 with net income between 19,331 and 31,489 | ||
| period: 2023 | ||
| input: | ||
| age: 67 | ||
| is_parent_or_grandparent: true | ||
| individual_net_income: 20_000 | ||
| province_code: AB | ||
| output: | ||
| ab_caregiver_amount: 11_489 | ||
|
|
||
| - name: Dependant Over 65 with net income over 31,489 | ||
| period: 2023 | ||
| input: | ||
| age: 25 | ||
| is_disabled: true | ||
| individual_net_income: 40_000 | ||
| province_code: AB | ||
| output: | ||
| ab_caregiver_amount: 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,4 +20,4 @@ | |
| pension_and_savings_plan_income: 0 | ||
| province_code: AB | ||
| output: | ||
| ab_pension_credit: 0 | ||
| ab_pension_credit: 0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| from policyengine_canada.model_api import * | ||
|
|
||
|
|
||
| class ab_caregiver_amount(Variable): | ||
| value_type = float | ||
| entity = Person | ||
| label = "Alberta caregiver amount" | ||
| unit = CAD | ||
| definition_period = YEAR | ||
| reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf" | ||
| defined_for = ProvinceCode.AB | ||
|
|
||
| def formula(person, period, parameters): | ||
| p = parameters( | ||
| period | ||
| ).gov.provinces.ab.tax.income.credits.credits_return | ||
|
|
||
| # Whether the person is dependant (65 or older/ disabled) | ||
| is_dependant = person("is_parent_or_grandparent", period) | ( | ||
| person("age", period) | ||
| >= p.lower_age_eligibility & person("is_disabled", period) | ||
| ) | ||
| dependant_net_income = ( | ||
| person("individual_net_income", period) * is_dependant | ||
| ) | ||
|
|
||
| income_eligibility = ( | ||
| dependant_net_income <= p.upper_dependant_income_threshold | ||
| ) | ||
|
|
||
| caregiver_amount = ( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dont we need the amount for the eligible dependent as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we don't need the amount for the eligible dependants: https://www.canada.ca/en/revenue-agency/services/forms-publications/tax-packages-years/general-income-tax-benefit-package/alberta/5009-pc/information-residents-alberta.html The website mentioend that "If you and another person support the same dependant, you can split the claim for that dependant. However, the total amount of your claim and the other person's claim cannot be more than the maximum amount allowed for that dependant." I think why we should include the maxmium amount. |
||
| p.upper_dependant_income_threshold - dependant_net_income | ||
| ) * income_eligibility | ||
|
|
||
| return min_(caregiver_amount, p.maximum_caregiver_amount) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from policyengine_canada.model_api import * | ||
|
|
||
|
|
||
| class is_parent_or_grandparent(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Is parent or grandparent" | ||
| definition_period = YEAR | ||
|
|
||
| def formula(person, period, parameters): | ||
| return person("age", period) >= 65 | ||
|
Kenyaokun marked this conversation as resolved.
Outdated
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.