Skip to content

Commit

Permalink
Add Nunavut single status credit
Browse files Browse the repository at this point in the history
  • Loading branch information
runyao-yin committed Aug 1, 2023
1 parent 85307ec commit d974cf2
Show file tree
Hide file tree
Showing 4 changed files with 44 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:
changed:
- Add Nunavut Single Status Credit.
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
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
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

0 comments on commit d974cf2

Please sign in to comment.