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

Add AGI logic #238

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Add AGI logic #238

merged 1 commit into from
Nov 15, 2021

Conversation

nikhilwoodruff
Copy link
Collaborator

Fixes #52

@@ -466,12 +469,32 @@ class c04470(Variable):
)


class exemption_phaseout_start(Variable):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line with our discussion on PolicyEngine/policyengine.dev#12

phaseout = parameters(period).tax.income.exemption.phaseout
phaseout_start = tax_unit("exemption_phaseout_start", period)
line_5 = max_(0, tax_unit("c00100", period) - phaseout_start)
line_6 = line_5 / (2500 / tax_unit("sep", period))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly sure what the inherent meaning of 2500 is here, or where we should parametrise it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaxGhenis MaxGhenis merged commit faef189 into master Nov 15, 2021
@nikhilwoodruff nikhilwoodruff deleted the agi-logic branch May 19, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AGI logic
2 participants