Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

okeyiii
Copy link
Contributor

@okeyiii okeyiii commented Oct 15, 2023

Fixes #455

@okeyiii okeyiii changed the title Okeyiii/issue455 Nova Scotia Age Amount Oct 15, 2023
@okeyiii okeyiii changed the title Nova Scotia Age Amount Nova Scotia Age Amount Supplement Oct 15, 2023
@okeyiii okeyiii marked this pull request as draft October 15, 2023 18:48
@okeyiii okeyiii marked this pull request as ready for review October 15, 2023 18:49
@okeyiii okeyiii marked this pull request as draft October 15, 2023 18:49
@okeyiii okeyiii marked this pull request as ready for review October 15, 2023 18:49
Add ns_age_amount_supplement_eligible
Fix PolicyEngine#455
Add a new check for age eligibility
Add unit test for age amount supplement
Add unit test for age amount supplement
Copy link
Contributor

@MaxGhenis MaxGhenis left a 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.

change file name and add age eligibility to be depencies as all files
Copy link
Collaborator

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

@@ -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"
Copy link
Collaborator

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

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nova Scotia Age amount supplement
4 participants