Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Alberta Caregiver Amount.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Alberta Caregiver Amount.
- Alberta caregiver amount.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Alberta limits its Child and Family Benefit to people above this age.
values:
2023-01-01: 18
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find 2022 values

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all yaml files

metadata:
unit: year
label: Alberta child and Family Benefit adult dependant 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add pdf pages

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all yaml files

- title: Province of Alberta - Alberta Personal Income Tax Act, RSA 2000
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
@@ -0,0 +1,11 @@
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
- title: Province of Alberta - Alberta Personal Income Tax Act, RSA 2000
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
@@ -0,0 +1,9 @@
description: Alberta provides the caregiver amount for dependants with income below this threshold.
values:
2023-01-01: 19_331
metadata:
unit: currency-CAD
label: Alberta caregiver amount dependent lower 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,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,52 @@
- name: Dependant Over 18 with net income between 19,331 and 31,489
period: 2023
input:
age: 19
is_disabled: true
live_together: 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
live_together: 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:
age: 66
live_together: 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
live_together: 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
live_together: false
individual_net_income: 40_000
province_code: AB
output:
ab_caregiver_amount: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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("age", period) >= 65) | (
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 = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we need the amount for the eligible dependent as well?

Copy link
Contributor Author

@Kenyaokun Kenyaokun Jul 25, 2023

Choose a reason for hiding this comment

The 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
* person("live_together", period)
)

return min_(caregiver_amount, p.maximum_caregiver_amount)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to the household folder

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from policyengine_canada.model_api import *


class live_together(Variable):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class live_together(Variable):
class cohabitating_dependant(Variable):

value_type = bool
entity = Person
label = "Albert Caregiver Dependant"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
label = "Albert Caregiver Dependant"
label = "Dependant living with the head of household"

documentation = "Whthere your spouse's or common-law partner's dependant lives with you or not."
definition_period = YEAR
reference = "chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf"
defined_for = ProvinceCode.AB
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defined_for = ProvinceCode.AB