-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
policyengine_canada/parameters/gov/provinces/ab/tax/income/credits/base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description: Alberta provides this maximum amount under the personal credit. | ||
values: | ||
2023-01-01: 21_003 | ||
metadata: | ||
unit: currency-CAD | ||
period: year | ||
label: Alberta base personal credit maximum amount | ||
reference: | ||
- title: Alberta income tax personal credit | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1ab/td1ab-23e.pdf |
6 changes: 6 additions & 0 deletions
6
policyengine_canada/tests/gov/provinces/ab/tax/income/credits/base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- name: Alberta Base | ||
period: 2023 | ||
input: | ||
province_code: AB | ||
output: | ||
ab_base_personal_credit: 21_003 |
15 changes: 15 additions & 0 deletions
15
policyengine_canada/variables/gov/provinces/ab/tax/income/credits/ab_base_personal_credit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class ab_base_personal_credit(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Alberta base personal credit" | ||
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): | ||
base = parameters(period).gov.provinces.ab.tax.income.credits.base | ||
return p |