Skip to content

Commit

Permalink
Merge pull request #486 from SirMalamute/SirMalamute/issue376
Browse files Browse the repository at this point in the history
Alberta base personal credit
  • Loading branch information
MaxGhenis authored Apr 22, 2024
2 parents b39f851 + bb9ed44 commit 5a190ba
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
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 basic personal amount.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: Alberta provides this basic personal amount.
values:
# Legal code defines $19,369.
# Section 44.2 defines indexing.
2022-01-01: 19_369
2023-01-01: 21_003
metadata:
unit: currency-CAD
period: year
label: Alberta basic personal amount
reference:
- title: Alberta income tax personal credit (2022)
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-22e.pdf#page=1
- title: Alberta income tax personal credit (2023)
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf#page=1
- title: Alberta Personal Income Tax Act Division 3 Basic Personal Amount C
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
Expand Up @@ -5,6 +5,7 @@ values:
- ab_disability_credit
- ab_pension_credit
- ab_spouse_and_common_law_partner_amount_credit
- ab_basic_personal_amount

metadata:
unit: list
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Alberta Basic Personal Amount (2022)
period: 2022
input:
province_code: AB
output:
ab_basic_personal_amount: 19_369

- name: Alberta Basic Personal Amount (2023)
period: 2023
input:
province_code: AB
output:
ab_basic_personal_amount: 21_003
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from policyengine_canada.model_api import *


class ab_basic_personal_amount(Variable):
value_type = float
entity = Person
label = "Alberta basic personal 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):
return parameters(
period
).gov.provinces.ab.tax.income.credits.basic_personal_amount.amount

0 comments on commit 5a190ba

Please sign in to comment.