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

Puerto Rico Earned Income Credit #5479

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llennemann
Copy link
Collaborator

Fixes #5467

@@ -0,0 +1,16 @@
description:
values:
2010-12-31: 3.5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
2010-12-31: 3.5
2010-12-31: 0.035

Copy link
Collaborator

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

Choose a reason for hiding this comment

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

Suggested change
unit: percent
unit: /1

Copy link
Collaborator

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

Copy link
Collaborator

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

Choose a reason for hiding this comment

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

Suggested change
unit = USD

Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk Jan 14, 2025

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:

  1. Calculate credit amount pre phase out
    Income * phase_in_rate capped at max_credit
  2. Calculate the phase_out
    p.phase_out_rate.calc(income)
  3. Calculate final value
    credit - phase_out

Copy link
Collaborator

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

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.

Puerto Rico Earned Income Credit
2 participants