forked from PolicyEngine/policyengine-canada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes PolicyEngine#410
- Loading branch information
Showing
6 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
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,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Saskatchewan basic personal amount. |
12 changes: 12 additions & 0 deletions
12
...ters/gov/provinces/sk/tax/income/credits/basic_personal_amount/basic_personal_amount.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,12 @@ | ||
description: Saskatchewan provides the this Basic Personal Amount. | ||
values: | ||
2023-01-01: 17_661 | ||
metadata: | ||
unit: currency-CAD | ||
period: year | ||
label: Saskatchewan Basic Personal Amount | ||
reference: | ||
- title: 2023 Saskatchewan Personal Tax Credit Return | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf | ||
- title: The Income Tax Act, 2000 DIVISION 2 Section 11 Basic Personal Credit | ||
href: https://publications.saskatchewan.ca/api/v1/products/583/formats/806/download |
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 |
---|---|---|
|
@@ -29,4 +29,4 @@ | |
members: [c1, c2] | ||
province_code: QC | ||
output: | ||
qc_sa_married_both_eligible: 1 | ||
qc_sa_married_both_eligible: 1 |
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ | |
members: [c1, c2] | ||
province_code: QC | ||
output: | ||
qc_sa_married_one_eligible: 1 | ||
qc_sa_married_one_eligible: 1 |
7 changes: 7 additions & 0 deletions
7
...s/gov/provinces/sk/tax/income/credits/basic_personal_amount/sk_basic_personal_amount.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,7 @@ | ||
- name: Every person employed in Saskatchewan and every pensioner residing in Saskatchewan can claim this amount. | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
|
||
output: | ||
sk_basic_personal_amount: 17_661 |
21 changes: 21 additions & 0 deletions
21
...les/gov/provinces/sk/tax/income/credits/basic_personal_amount/sk_basic_personal_amount.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,21 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class sk_basic_personal_amount(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Saskatchewan basic personal amount" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = ( | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf", | ||
"https://publications.saskatchewan.ca/api/v1/products/583/formats/806/download", | ||
) | ||
defined_for = ProvinceCode.SK | ||
|
||
def formula(person, period, parameters): | ||
p = parameters( | ||
period | ||
).gov.provinces.sk.tax.income.credits.basic_personal_amount | ||
|
||
return p.basic_personal_amount |