-
Notifications
You must be signed in to change notification settings - Fork 178
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 Low Income Credit #5396
Draft
PavelMakarchuk
wants to merge
3
commits into
master
Choose a base branch
from
PavelMakarchuk/issue5395
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+150
−0
Draft
Puerto Low Income Credit #5396
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
This file contains 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 @@ | ||
# Puerto Rico |
14 changes: 14 additions & 0 deletions
14
...ine_us/parameters/gov/territories/pr/tax/income/credits/low_income/additional/amount.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico provides the following compensatory tax credit amount for low-income pensioners. | ||
|
||
values: | ||
2011-01-01: 300 | ||
|
||
metadata: | ||
unit: currency-USD | ||
period: year | ||
label: Puerto Rico compensatory tax credit for low-income pensioners | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (b) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
14 changes: 14 additions & 0 deletions
14
.../parameters/gov/territories/pr/tax/income/credits/low_income/additional/income_limit.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico limits the compensatory tax credit for low-income pensioners to filers with pension income below this limit. | ||
|
||
values: | ||
2011-01-01: 4_800 | ||
|
||
metadata: | ||
unit: currency-USD | ||
period: year | ||
label: Puerto Rico compensatory tax credit for low-income pensioners income limit | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (b) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
14 changes: 14 additions & 0 deletions
14
...yengine_us/parameters/gov/territories/pr/tax/income/credits/low_income/age_threshold.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico limits the low income tax credit to filers below this age threshold. | ||
|
||
values: | ||
2011-01-01: 65 | ||
|
||
metadata: | ||
unit: year | ||
period: year | ||
label: Puerto Rico low income tax credit age threshold | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (a) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
14 changes: 14 additions & 0 deletions
14
policyengine_us/parameters/gov/territories/pr/tax/income/credits/low_income/amount.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico provides the following low income tax credit amount. | ||
|
||
values: | ||
2011-01-01: 400 | ||
|
||
metadata: | ||
unit: currency-USD | ||
period: year | ||
label: Puerto Rico low income tax credit amount | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (a) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
14 changes: 14 additions & 0 deletions
14
...rs/gov/territories/pr/tax/income/credits/low_income/income_limit/one_eligible_person.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico limits the low income tax credit to filers below this income limit, for tax units with one eligible person. | ||
|
||
values: | ||
2011-01-01: 15_000 | ||
|
||
metadata: | ||
unit: currency-USD | ||
period: year | ||
label: Puerto Rico low income tax credit income limit one eligible person | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (a) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
14 changes: 14 additions & 0 deletions
14
...rs/gov/territories/pr/tax/income/credits/low_income/income_limit/two_eligible_people.yaml
This file contains 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,14 @@ | ||
description: Puerto Rico limits the low income tax credit to filers below this income limit, for tax units with two eligible people. | ||
|
||
values: | ||
2011-01-01: 30_000 | ||
|
||
metadata: | ||
unit: currency-USD | ||
period: year | ||
label: Puerto Rico low income tax credit income limit two eligible people | ||
reference: | ||
- title: P.R. Laws tit. 13, § 30212 (a) | ||
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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age | ||
- title: Gov. of Puerto Rico Form 481.10 2023 | ||
href: https://hacienda.pr.gov/sites/default/files/documentos/481.10_2023_informative.pdf#page=4 |
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions
12
...ine_us/variables/gov/territories/pr/tax/income/credits/low_income/pr_low_income_credit.py
This file contains 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,12 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_low_income_credit(Variable): | ||
value_type: float | ||
entity: TaxUnit | ||
label: "Puerto Rico low income credit" | ||
unit: USD | ||
definition_period: YEAR | ||
reference: "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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age" | ||
|
||
|
27 changes: 27 additions & 0 deletions
27
...riables/gov/territories/pr/tax/income/credits/low_income/pr_low_income_credit_eligible.py
This file contains 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,27 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_low_income_credit_eligible(Variable): | ||
value_type: bool | ||
entity: TaxUnit | ||
label: "Eligible unit for the Puerto Rico low income credit" | ||
definition_period: YEAR | ||
reference: "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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age" | ||
|
||
def formula(tax_unit, period, parameters): | ||
p = parameters(period).gov.territories.pr.tax.income.credits.low_income.income_limit | ||
eligible_person = tax_unit.members("pr_low_income_credit_eligible_person", period) | ||
eligible_people = tax_unit.sum(eligible_person) | ||
income = tax_unit("pr_gross_income", period) | ||
income_limit = select( | ||
[ | ||
eligible_people == 1, | ||
eligible_people == 2, | ||
], | ||
[ | ||
p.one_person_eligible, | ||
p.two_people_eligible, | ||
], | ||
default_value = 0 | ||
) | ||
return where(eligible_people > 0, income <= income_limit, False) |
16 changes: 16 additions & 0 deletions
16
.../gov/territories/pr/tax/income/credits/low_income/pr_low_income_credit_eligible_person.py
This file contains 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 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_low_income_credit_eligible_person(Variable): | ||
value_type: bool | ||
entity: Person | ||
label: "Eligible person for the Puerto Rico low income credit" | ||
definition_period: YEAR | ||
reference: "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/30212-credit-for-low-income-individuals-older-than-sixty-five-65-years-of-age" | ||
|
||
def formula(person, period, parameters): | ||
age = person("age", period) | ||
p = parameters(period).gov.territories.pr.tax.income.credits.low_income | ||
head_or_spouse = person("is_tax_unit_head_or_spouse", period) | ||
age_eligible = age >= p.age_threshold | ||
return head_or_spouse & age_eligible |
10 changes: 10 additions & 0 deletions
10
policyengine_us/variables/gov/territories/pr/tax/income/pr_gross_income.py
This file contains 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 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_gross_income(Variable): | ||
value_type: float | ||
entity: TaxUnit | ||
label: "Puerto Rico gross income" | ||
unit: USD | ||
definition_period: YEAR | ||
reference: "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-1005-computation-of-taxable-income/subchapter-a-determination-of-net-income-general-concepts/30101-gross-income" |
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.
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.
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.
disagree - what does
pensioner
mean? filer seems clearer