forked from PolicyEngine/policyengine-us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecfbbbb
commit 4a36ffc
Showing
12 changed files
with
27 additions
and
27 deletions.
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
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
2 changes: 1 addition & 1 deletion
2
...yengine_us/parameters/gov/territories/pr/tax/income/credits/earned_income/max_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
2 changes: 1 addition & 1 deletion
2
...gine_us/parameters/gov/territories/pr/tax/income/credits/earned_income/phase_in_rate.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
2 changes: 1 addition & 1 deletion
2
...ine_us/parameters/gov/territories/pr/tax/income/credits/earned_income/phase_out_rate.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
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
4 changes: 2 additions & 2 deletions
4
...gov/territories/pr/tax/income/credits/earned_income/pr_earned_income_credit_eligible.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
Empty file.
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
13 changes: 8 additions & 5 deletions
13
...s/gov/territories/pr/tax/income/credits/earned_income/pr_earned_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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_earned_income_credit_eligible(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = "Eligible person for Puerto Rico earned income credit" | ||
label = "Puerto Rico earned income credit eligibility" | ||
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/30211-earned-income-credit" | ||
|
||
def formula(person, period, parameters): | ||
p = parameters( | ||
period | ||
).gov.territories.pr.tax.income.credits.earned_income | ||
).gov.territories.pr.tax.income.credits.earned_income.investment_income | ||
head_or_spouse = person("is_tax_unit_head_or_spouse", period) | ||
investment_income = person("pr_earned_income_credit_investment_income", period) | ||
investment_income_amount_under_limit = investment_income < p.max_investment_income | ||
return head_or_spouse & investment_income_amount_under_limit | ||
investment_income = person( | ||
"pr_earned_income_credit_investment_income", period | ||
) | ||
investment_income_amount_under_limit = investment_income <= p.limit | ||
return head_or_spouse & investment_income_amount_under_limit |
10 changes: 3 additions & 7 deletions
10
...ritories/pr/tax/income/credits/earned_income/pr_earned_income_credit_investment_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 |
---|---|---|
@@ -1,16 +1,12 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_earned_income_credit_investment_income(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Puerto Rico earned income credit investment income" | ||
definition_period = YEAR | ||
unit = USD | ||
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/30211-earned-income-credit" | ||
|
||
def formula(person, period, parameters): | ||
p = parameters( | ||
period | ||
).gov.territories.pr.tax.income.credits.earned_income | ||
# sum up all defined categories for investment income | ||
adds = "gov.territories.pr.tax.income.credits.earned_income.ineligible_income_categories" | ||
return adds | ||
adds = "gov.territories.pr.tax.income.credits.earned_income.ineligible_income_categories" |
6 changes: 3 additions & 3 deletions
6
...ax/income/pr_gross_income_person_level.py → ...s/pr/tax/income/pr_gross_income_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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class pr_gross_income(Variable): | ||
class pr_gross_income_person(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Puerto Rico gross income person level" | ||
label = "Puerto Rico gross income person" | ||
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" | ||
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" |