-
Notifications
You must be signed in to change notification settings - Fork 33
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
Nova Scotia Age Amount Supplement #458
base: master
Are you sure you want to change the base?
Conversation
Add new files Fixes PolicyEngine#455
…-canada into okeyiii/issue455
Create pr and new files Fix #issue455
Fix the test fail
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/age_supplement/base.yaml
Outdated
Show resolved
Hide resolved
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/age_supplement/base.yaml
Outdated
Show resolved
Hide resolved
change name Fixes PolicyEngine#455
fix name
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/base.yaml
Outdated
Show resolved
Hide resolved
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/age_supplement/base.yaml
Outdated
Show resolved
Hide resolved
...canada/parameters/gov/provinces/ns/tax/income/credits/age/age_supplement/phase_out_rate.yaml
Outdated
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Outdated
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
policyengine_canada/tests/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.yaml
Show resolved
Hide resolved
policyengine_canada/tests/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.yaml
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Show resolved
Hide resolved
policyengine_canada/tests/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.yaml
Outdated
Show resolved
Hide resolved
Fix PolicyEngine#455 Add a new check for age eligibility
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/base.yaml
Outdated
Show resolved
Hide resolved
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/base.yaml
Outdated
Show resolved
Hide resolved
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/base.yaml
Show resolved
Hide resolved
policyengine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/base.yaml
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Show resolved
Hide resolved
Add unit test for age amount supplement
Add unit test for age amount supplement
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.
The law ties eligibility to the general age amount credit eligibility. So please refactor that credit's code to separate an eligibility variable depending only on age, and use that for both credits.
The ns_age_tax_credit
variable also looks not to represent the phase-out of that credit correctly. Please fix that variable according to the law and form in this PR.
..._canada/tests/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.yaml
Outdated
Show resolved
Hide resolved
...ine_canada/parameters/gov/provinces/ns/tax/income/credits/age/supplement/phase_out_rate.yaml
Outdated
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
change file name and add age eligibility to be depencies as all files
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Show resolved
Hide resolved
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.
cerate a variable
ns_age_amount.py
ns_age_amount_eligible.py
...yengine_canada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement.py
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Outdated
Show resolved
Hide resolved
...anada/variables/gov/provinces/ns/tax/income/credits/age/ns_age_amount_supplement_eligible.py
Outdated
Show resolved
Hide resolved
@@ -6,14 +6,17 @@ class ns_age_tax_credit(Variable): | |||
entity = Person | |||
label = "Nova Scotia Age tax credit" | |||
definition_period = YEAR | |||
defined_for = ProvinceCode.NS | |||
defined_for = "ns_age_amount_supplement_eligible" |
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.
delete this as this is for the age tax credit
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.
please double check the logic of the credit making sure it is accurate
Fixes #455