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.
Showing
4 changed files
with
44 additions
and
0 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: | ||
changed: | ||
- Add Nunavut Single Status Credit. |
9 changes: 9 additions & 0 deletions
9
...ne_canada/parameters/gov/provinces/nu/tax/income/credits/single_status_credit/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,9 @@ | ||
description: Nunavut provides this amount to person with single status | ||
values: | ||
2022-01-01: 16_000 | ||
metadata: | ||
unit: currency-CAD | ||
label: Nunavut single status credit amount | ||
reference: | ||
- title: Nunavut Income Tax Act Part I Division B Subvision c 2.16 | ||
href: https://www.nunavutlegislation.ca/en/consolidated-law/income-tax-act-consolidation |
15 changes: 15 additions & 0 deletions
15
...sts/gov/provinces/nu/tax/income/credits/single_status_credit/nu_single_status_credit.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,15 @@ | ||
- name: Person with single status | ||
period: 2023 | ||
input: | ||
province_code: NU | ||
is_married: false | ||
output: | ||
nu_single_status_credit: 16_000 | ||
|
||
- name: Person with married status | ||
period: 2023 | ||
input: | ||
province_code: NU | ||
is_married: true | ||
output: | ||
nu_single_status_credit: 0 |
16 changes: 16 additions & 0 deletions
16
...ariables/gov/provinces/nu/tax/income/credits/single_status_credit/single_status_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,16 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class nu_single_status_credit(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Nunavut single status credit" | ||
definition_period = YEAR | ||
defined_for = ProvinceCode.NU | ||
|
||
def formula(person, period, parameters): | ||
single_status = ~person.household("is_married", period) | ||
amount = parameters( | ||
period | ||
).gov.provinces.nu.tax.income.credits.single_status_credit.amount | ||
return amount * single_status |