-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Nunavut single status credit #430
Open
runyao-yin
wants to merge
18
commits into
PolicyEngine:master
Choose a base branch
from
runyao-yin:Nunavut-single-status-credit
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+59
−0
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d974cf2
Add Nunavut single status credit
runyao-yin 5f3525a
Update amount.yaml
runyao-yin 2206a9b
Update policyengine_canada/parameters/gov/provinces/nu/tax/income/cre…
runyao-yin 3cc8434
Update changelog_entry.yaml
runyao-yin 38bfdf8
Update policyengine_canada/parameters/gov/provinces/nu/tax/income/cre…
runyao-yin 2c325f1
Update single_status_credit.py
runyao-yin 69a5e4f
Update single_status_credit.py
runyao-yin 8f25955
fixes
runyao-yin d8aca4a
Update changelog_entry.yaml
runyao-yin aadf600
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin 27129af
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin 7362ab2
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin 58143de
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin 3d5d916
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin aa55388
Update amount.yaml
runyao-yin f4264f0
Update nu_single_status_credit.yaml
runyao-yin 2e89723
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin d0a9838
Update policyengine_canada/variables/gov/provinces/nu/tax/income/cred…
runyao-yin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. | ||
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
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 | ||
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
values: | ||
2022-01-01: 16_000 | ||
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 | ||
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
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
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
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( | ||
runyao-yin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
period | ||
).gov.provinces.nu.tax.income.credits.single_status_credit.amount | ||
return amount * single_status |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a make format and git pull upstream master