-
Notifications
You must be signed in to change notification settings - Fork 193
Puerto Rico Earned Income Credit #5479
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
Merged
MaxGhenis
merged 46 commits into
PolicyEngine:master
from
llennemann:llennemann/issue5467
Jul 22, 2025
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
87d0899
Puerto Rico Earned Income Credit
llennemann eb9f6be
Puerto Rico Earned Income Credit
llennemann 9b54ff2
Puerto Rico Earned Income Credit
llennemann 501fb8f
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann ecfbbbb
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 4a36ffc
EITC changes
llennemann d2a9a8b
Puerto Rico Earned Income Credit
llennemann 9e977b7
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann bfccb2c
EITC credit added tax reference form
llennemann a5ba904
Changes to fit tax form
llennemann f50bd4e
Puerto Rico Earned Income Credit
llennemann b8513fd
Puerto Rico Earned Income Credit
llennemann e2aa0c0
More testing
llennemann 91f90df
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 819afef
Added references
llennemann 3a7a281
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 101e707
Parameter fixes
llennemann e7e0dc2
Added not eligible for low income if claim EITC
llennemann b9067d8
Changed entity, optimized for microsim
llennemann e9b0633
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 4209fe0
Changed entity to taxunit
llennemann c6bff43
Low income credit fix with EITC
llennemann 528a856
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 8db5e3f
Fixes EITC
llennemann a055be5
Small fixes
llennemann 8831fb6
Small fix for tests
llennemann 9530ffb
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 5990f02
Initial PR gross income sources
llennemann 1c3cca6
Removed gross income sources file
llennemann 23c53d9
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 7a7cbca
changed legal reference, small fixes
llennemann 2e693f5
small fix for tests
llennemann 21c6d85
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
llennemann 517210c
pr gross income to person level
llennemann 324c0af
fix to low income test
llennemann d98bca2
fixed merge conflicts
llennemann d55fb97
fixed merge conflicts
llennemann cf201da
gross income person and taxunit
llennemann dc5a24c
format
llennemann e9085ab
Fix test cases with pr gross income person level
llennemann 68d08a4
More fixes to tests
llennemann 31f4a6d
Removed old investment income
llennemann a63eaa3
Added discrepancy in legal statute
llennemann e0e8ace
Change file name
llennemann da4d1d0
Small fix
llennemann 0abdd53
Small fix to sources
llennemann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...e_us/parameters/gov/territories/pr/tax/income/credits/earned_income/net_income_limit.yaml
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description: | ||
values: | ||
2010-12-31: 2_200 | ||
metadata: | ||
unit: currency-USD | ||
label: | ||
period: year | ||
reference: | ||
- title: | ||
href: |
16 changes: 16 additions & 0 deletions
16
...ine_us/parameters/gov/territories/pr/tax/income/credits/earned_income/percent_income.yaml
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
description: | ||
values: | ||
2010-12-31: 3.5 | ||
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
2011-12-31: 4 | ||
2012-12-31: 4.5 | ||
2013-12-31: 5 | ||
2014-12-31: 5.5 | ||
2015-12-31: 6 | ||
|
||
metadata: | ||
unit: percent | ||
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
label: | ||
period: year | ||
reference: | ||
- title: | ||
href: |
11 changes: 11 additions & 0 deletions
11
...ers/gov/territories/pr/tax/income/credits/earned_income/percent_income_upper_bracket.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description: | ||
values: | ||
2010-12-31: 2 | ||
|
||
metadata: | ||
unit: percent | ||
label: | ||
period: year | ||
reference: | ||
- title: | ||
href: |
16 changes: 16 additions & 0 deletions
16
...ameters/gov/territories/pr/tax/income/credits/earned_income/upper_bracket_income_max.yaml
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
description: | ||
values: | ||
2010-12-31: 22_500 | ||
2011-12-31: 25_000 | ||
2012-12-31: 27_500 | ||
2013-12-31: 30_000 | ||
2014-12-31: 32_500 | ||
2015-12-31: 35_000 | ||
|
||
metadata: | ||
unit: currency-USD | ||
label: | ||
period: year | ||
reference: | ||
- title: | ||
href: |
11 changes: 11 additions & 0 deletions
11
...ameters/gov/territories/pr/tax/income/credits/earned_income/upper_bracket_income_min.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
description: | ||
values: | ||
2010-12-31: 10_000 | ||
|
||
metadata: | ||
unit: currency-USD | ||
label: | ||
period: year | ||
reference: | ||
- title: | ||
href: |
19 changes: 19 additions & 0 deletions
19
...s/gov/territories/pr/tax/income/credits/earned_income/pr_earned_income_credit_eligible.py
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_earned_income_credit_eligible(Variable): | ||
value_type = bool | ||
unit = USD | ||
llennemann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
entity = Person | ||
label = "" | ||
definition_period = YEAR | ||
reference = "" | ||
|
||
def formula(person, period, parameters): | ||
p = parameters( | ||
period | ||
).gov.territories.pr.tax.income.credits.earned_income | ||
head_or_spouse = person("is_tax_unit_head_or_spouse", period) | ||
net_income = person("") # if net_income (interest, child care payments etc.) | ||
|
||
return head_or_spouse & net_income < p.net_income_limit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.