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 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
87d0899
Puerto Rico Earned Income Credit
llennemann Jan 14, 2025
eb9f6be
Puerto Rico Earned Income Credit
llennemann Jan 16, 2025
9b54ff2
Puerto Rico Earned Income Credit
llennemann Jan 21, 2025
501fb8f
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Jan 21, 2025
ecfbbbb
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Jan 23, 2025
4a36ffc
EITC changes
llennemann Jan 23, 2025
d2a9a8b
Puerto Rico Earned Income Credit
llennemann Jan 23, 2025
9e977b7
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Jan 23, 2025
bfccb2c
EITC credit added tax reference form
llennemann Jan 23, 2025
a5ba904
Changes to fit tax form
llennemann Jan 30, 2025
f50bd4e
Puerto Rico Earned Income Credit
llennemann Feb 4, 2025
b8513fd
Puerto Rico Earned Income Credit
llennemann Feb 4, 2025
e2aa0c0
More testing
llennemann Feb 6, 2025
91f90df
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Feb 10, 2025
819afef
Added references
llennemann Feb 10, 2025
3a7a281
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Feb 11, 2025
101e707
Parameter fixes
llennemann Feb 11, 2025
e7e0dc2
Added not eligible for low income if claim EITC
llennemann Feb 12, 2025
b9067d8
Changed entity, optimized for microsim
llennemann Feb 17, 2025
e9b0633
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Feb 19, 2025
4209fe0
Changed entity to taxunit
llennemann Feb 19, 2025
c6bff43
Low income credit fix with EITC
llennemann Feb 24, 2025
528a856
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann Feb 24, 2025
8db5e3f
Fixes EITC
llennemann Feb 24, 2025
a055be5
Small fixes
llennemann Feb 27, 2025
8831fb6
Small fix for tests
llennemann Feb 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Puerto Rico earned income credit.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: Puerto Rico limits the Earned Income Tax Credit to filers of this age or older.
values:
2023-01-01: 19
metadata:
unit: year
period: year
label: Puerto Rico earned income credit minimum age
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=1
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we try and add legal code references to all yaml files or document if we can't point to anything specific

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added! However, just to note that the legal code differs from the tax code - legal code doesn't mention age limit, how married filing separate are not eligible, and different thresholds for joint vs. individual.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, let me know if you prefer tax vs. legal code for the variable reference section

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Puerto Rico allows married filing separate filers eligible for the EITC when this is true.
values:
2023-01-01: false
metadata:
unit: bool
label: Puerto Rico earned income credit separate filers eligible
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Puerto Rico limits the earned income credit to filers with investment income below this threshold.
values:
2010-12-31: 2_200
2023-01-01: 10_000
metadata:
unit: currency-USD
label: Puerto Rico earned income credit investment income limit
period: year
reference:
- title: P.R. Laws tit. 13, § 30211 (e)
href: https://casetext.com/statute/laws-of-puerto-rico/title-thirteen-taxation-and-finance/subtitle-17-internal-revenue-code-of-2011/part-ii-income-taxes/chapter-1007-credits-against-tax/subchapter-b-refundable-credits/30211-earned-income-credit
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: Puerto Rico accounts for the following investment income sources, under the earned income tax credit.
values:
2010-12-31:
- interest_income
- dividend_income
- rental_income
- capital_gains
- child_support_received
metadata:
unit: list
period: year
label: Puerto Rico earned income credit investment income sources
reference:
- title: P.R. Laws tit. 13, § 30211 (e)
href: https://casetext.com/statute/laws-of-puerto-rico/title-thirteen-taxation-and-finance/subtitle-17-internal-revenue-code-of-2011/part-ii-income-taxes/chapter-1007-credits-against-tax/subchapter-b-refundable-credits/30211-earned-income-credit
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=4
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
description: Puerto Rico provides the following maximum amount of earned income credit.
brackets:
- threshold:
2023-01-01: 0
amount:
2023-01-01: 1_656
- threshold:
2023-01-01: 1
amount:
2023-01-01: 3_864
- threshold:
2023-01-01: 2
amount:
2023-01-01: 6_072
- threshold:
2023-01-01: 3
amount:
2023-01-01: 7_173
metadata:
amount_unit: currency-USD
threshold_unit: child
type: single_amount
label: Puerto Rico earned income credit max amount
period: year
reference:
- title: P.R. Laws tit. 13, § 30211 (1)-(6)
href: https://casetext.com/statute/laws-of-puerto-rico/title-thirteen-taxation-and-finance/subtitle-17-internal-revenue-code-of-2011/part-ii-income-taxes/chapter-1007-credits-against-tax/subchapter-b-refundable-credits/30211-earned-income-credit
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: Puerto Rico phases the earned income credit in at this rate of state gross income.
# determine phase in rate percentage by number of children
brackets:
- threshold:
2010-12-31: 0
amount:
2010-12-31: 0.15
- threshold:
2010-12-31: 1
amount:
2010-12-31: 0.3398
- threshold:
2010-12-31: 2
amount:
2010-12-31: 0.4
- threshold:
2010-12-31: 3
amount:
2010-12-31: 0.4483
metadata:
amount_unit: /1
threshold_unit: child
type: single_amount
label: Puerto Rico earned income credit phase in rate
period: year
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: Puerto Rico phases the earned income credit out at this rate of state gross income based on the filer's number of dependents.
# determine phase-out rate based on number of children
brackets:
- threshold:
2023-01-01: 0
amount:
2023-01-01: 0.15
- threshold:
2023-01-01: 1
amount:
2023-01-01: 0.2692
- threshold:
2023-01-01: 2
amount:
2023-01-01: 0.3438
- threshold:
2023-01-01: 3
amount:
2023-01-01: 0.3421
metadata:
amount_unit: /1
threshold_unit: child
type: single_amount
label: Puerto Rico earned income credit phase out rate
period: year
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: Puerto Rico phases the earned income credit out at this amount of state gross income.
# determines the threshold for the phase-in amount to be applied based on # of children
brackets:
- threshold:
2023-01-01: 0
amount:
2023-01-01: 19_870
- threshold:
2023-01-01: 1
amount:
2023-01-01: 24_280
- threshold:
2023-01-01: 2
amount:
2023-01-01: 27_590
- threshold:
2023-01-01: 3
amount:
2023-01-01: 27_590
metadata:
amount_unit: currency-USD
threshold_unit: child
type: single_amount
label: Puerto Rico earned income credit phase out threshold
period: year
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: Puerto Rico phases the earned income credit out at this amount of state gross income.
# determines the threshold for the phase-in amount to be applied based on # of children
brackets:
- threshold:
2023-01-01: 0
amount:
2023-01-01: 17_660
- threshold:
2023-01-01: 1
amount:
2023-01-01: 19_870
- threshold:
2023-01-01: 2
amount:
2023-01-01: 23_180
- threshold:
2023-01-01: 3
amount:
2023-01-01: 23_180
metadata:
amount_unit: currency-USD
threshold_unit: child
type: single_amount
label: Puerto Rico earned income credit phase out threshold
period: year
reference:
- title: Schedule CT Individual, Earned Income Credit, 2023
href: https://hacienda.pr.gov/sites/default/files/schedule_ct_rev._jul_5_23_informative_-_instructions.pdf#page=2
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ values:
2021-01-01:
- pr_low_income_credit
- pr_compensatory_low_income_credit
- pr_earned_income_credit
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
- name: integration test 1, a married couple with 2 dependents
period: 2024
input:
people:
person1:
pr_gross_income_person: 15_000
age: 40
is_tax_unit_head_or_spouse: true
person2:
pr_gross_income_person: 10_000
age: 44
is_tax_unit_head_or_spouse: true
person3:
pr_gross_income_person: 0
age: 5
person4:
pr_gross_income_person: 1_000
age: 15
tax_units:
tax_unit:
members: [person1, person2, person3, person4]
filing_status: JOINT
households:
household:
members: [person1, person2, person3, person4]
state_code: PR
output:
pr_earned_income_credit_eligible_people: 2
pr_earned_income_credit_eligible: true
pr_earned_income_credit: 6_072
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
- name: Not eligible person, 2024
period: 2024
input:
pr_earned_income_child_count: 2
filing_status: SINGLE
pr_gross_income_person: 10_000
pr_earned_income_credit_eligible: false
output:
pr_earned_income_credit: 0

- name: Eligible person, 0 children with max credit
period: 2024
input:
pr_earned_income_child_count: 0
filing_status: SINGLE
pr_gross_income_person: 17_660
pr_earned_income_credit_eligible: true
output:
pr_earned_income_credit: 1_656

- name: Eligible person, 1 child and higher bracket
period: 2024
input:
pr_earned_income_child_count: 1
filing_status: SINGLE
pr_gross_income_person: 25_000
pr_earned_income_credit_eligible: true
output:
pr_earned_income_credit: 2_483.004

- name: Eligible person, 0 child and filing jointly
period: 2024
input:
pr_earned_income_child_count: 0
filing_status: JOINT
pr_gross_income_person: 19_870
pr_earned_income_credit_eligible: true
output:
pr_earned_income_credit: 1_656

- name: Eligible person, 1 child, filing jointly, higher bracket
period: 2024
input:
pr_earned_income_child_count: 1
filing_status: JOINT
pr_gross_income_person: 25_000
pr_earned_income_credit_eligible: true
output:
pr_earned_income_credit: 3_670.176

- name: Eligible person, 5 child, single, higher bracket
period: 2024
input:
pr_earned_income_child_count: 5
filing_status: SINGLE
pr_gross_income_person: 50_000
pr_earned_income_credit_eligible: true
output:
pr_earned_income_credit: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: No eligible people
period: 2024
input:
pr_earned_income_credit_eligible_people: 0
output:
pr_earned_income_credit_eligible: false

- name: Eligible people exist
period: 2024
input:
pr_earned_income_credit_eligible_people: 1
output:
pr_earned_income_credit_eligible: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
- name: Dependent
period: 2024
input:
is_tax_unit_head_or_spouse: false
pr_earned_income_credit_investment_income: 2_000
age: 25
filing_status: JOINT
output:
pr_earned_income_credit_eligible_person: false

- name: Filing separately
period: 2024
input:
is_tax_unit_head_or_spouse: true
pr_earned_income_credit_investment_income: 3_000
age: 30
filing_status: SEPARATE
output:
pr_earned_income_credit_eligible_person: false

- name: Under the age limit
period: 2024
input:
is_tax_unit_head_or_spouse: true
pr_earned_income_credit_investment_income: 2_000
age: 18
filing_status: JOINT
output:
pr_earned_income_credit_eligible_person: false

- name: Investment income over the limit
period: 2024
input:
is_tax_unit_head_or_spouse: true
pr_earned_income_credit_investment_income: 10_001
age: 60
filing_status: SINGLE
output:
pr_earned_income_credit_eligible_person: false

- name: Eligible person
period: 2024
input:
is_tax_unit_head_or_spouse: true
pr_earned_income_credit_investment_income: 10_000
age: 65
filing_status: SINGLE
output:
pr_earned_income_credit_eligible_person: true
Loading
Loading