-
Notifications
You must be signed in to change notification settings - Fork 183
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
Puerto Rico Earned Income Credit #5479
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,16 @@ | |||
description: | |||
values: | |||
2010-12-31: 3.5 |
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.
2010-12-31: 3.5 | |
2010-12-31: 0.035 |
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.
and others
2015-12-31: 6 | ||
|
||
metadata: | ||
unit: percent |
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.
unit: percent | |
unit: /1 |
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.
lets rename to max_investment_income.yaml
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.
We want to make a list parameter for the investment income types such as
interest_income
dividend_income
rental_income
capital_gains
child_support_received
|
||
class pr_earned_income_credit_eligible(Variable): | ||
value_type = bool | ||
unit = USD |
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.
unit = USD |
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.
Lets make three new files (both marginal rate parameters):
phase_in_rate.yaml
- 3.5 to 6%
max_credit.yaml
: $600 (maybe changes by year)
phase_out_rate.yaml
marginal_rate parameter
brackets:
- threshold:
0000-01-01: 0
rate:
2022-01-01: 0
- threshold:
2022-01-01: 10_000
rate:
2022-01-01: 0.02
- threshold:
2022-01-01: 35_000
rate:
2022-01-01: 0
For the computation of the credit:
- Calculate credit amount pre phase out
Income * phase_in_rate capped at max_credit - Calculate the phase_out
p.phase_out_rate.calc(income) - Calculate final value
credit - phase_out
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.
probably dont need this as it is mathematically derived
Fixes #5467