Skip to content

Commit 862ccb8

Browse files
committed
Add forms
1 parent 88c106d commit 862ccb8

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/credits/low_income/pr_low_income_credit_eligible.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
people:
66
person1:
77
pr_low_income_credit_eligible_person: true
8-
pr_gross_income: 20_000
8+
pr_gross_income_person: 20_000
99
person2:
1010
pr_low_income_credit_eligible_person: true
11-
pr_gross_income: 9_000
11+
pr_gross_income_person: 9_000
1212
tax_units:
1313
tax_unit:
1414
members: [person1, person2]
@@ -25,10 +25,10 @@
2525
people:
2626
person1:
2727
pr_low_income_credit_eligible_person: false
28-
pr_gross_income: 20_000
28+
pr_gross_income_person: 20_000
2929
person2:
3030
pr_low_income_credit_eligible_person: false
31-
pr_gross_income: 12_000
31+
pr_gross_income_person: 12_000
3232
tax_units:
3333
tax_unit:
3434
members: [person1, person2]
@@ -45,10 +45,10 @@
4545
people:
4646
person1:
4747
pr_low_income_credit_eligible_person: true
48-
pr_gross_income: 10_000
48+
pr_gross_income_person: 10_000
4949
person2:
5050
pr_low_income_credit_eligible_person: false
51-
pr_gross_income: 5_000
51+
pr_gross_income_person: 5_000
5252
tax_units:
5353
tax_unit:
5454
members: [person1, person2]
@@ -65,10 +65,10 @@
6565
people:
6666
person1:
6767
pr_low_income_credit_eligible_person: true
68-
pr_gross_income: 10_000
68+
pr_gross_income_person: 10_000
6969
person2:
7070
pr_low_income_credit_eligible_person: false
71-
pr_gross_income: 5_001
71+
pr_gross_income_person: 5_001
7272
tax_units:
7373
tax_unit:
7474
members: [person1, person2]

policyengine_us/variables/gov/territories/pr/tax/income/credits/low_income/pr_low_income_credit_eligible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def formula(tax_unit, period, parameters):
1414
eligible_people = tax_unit(
1515
"pr_low_income_credit_eligible_people", period
1616
)
17-
income = tax_unit("pr_gross_income", period)
17+
income = tax_unit("pr_gross_income_person", period)
1818
income_limit = p.income_limit.calc(eligible_people)
1919
return income <= income_limit

policyengine_us/variables/gov/territories/pr/tax/income/credits/refundable_ctc/pr_refundable_ctc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class pr_refundable_ctc(Variable):
77
label = "Puerto Rico refundable Child Tax Credit"
88
unit = USD
99
definition_period = YEAR
10-
reference = "https://www.irs.gov/pub/irs-pdf/f1040s8.pdf"
10+
reference = (
11+
"https://www.irs.gov/pub/irs-pdf/f1040s8.pdf"
12+
"https://www.law.cornell.edu/uscode/text/26/24#h_4_A"
13+
)
1114

1215
# This provision is part of the federal CTC legal code
1316
# will will merge the logic with the federal CTC once the puerto income tax structure is completed

policyengine_us/variables/gov/territories/pr/tax/income/credits/refundable_ctc/pr_refundable_ctc_social_security_tax.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class pr_refundable_ctc_social_security_tax(Variable):
77
label = "Puerto Rico social security and medicare taxes for refundable Child Tax Credit"
88
unit = USD
99
definition_period = YEAR
10-
reference = "https://www.irs.gov/pub/irs-pdf/f1040s8.pdf"
10+
reference = (
11+
"https://www.irs.gov/pub/irs-pdf/f1040s8.pdf"
12+
"https://www.law.cornell.edu/uscode/text/26/24#h_4_A"
13+
)
1114

1215
# line 23
1316
adds = "gov.irs.credits.ctc.refundable.social_security.add"

policyengine_us/variables/gov/territories/pr/tax/income/pr_gross_income.py renamed to policyengine_us/variables/gov/territories/pr/tax/income/pr_gross_income_person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from policyengine_us.model_api import *
22

33

4-
class pr_gross_income(Variable):
4+
class pr_gross_income_person(Variable):
55
value_type = float
66
entity = Person
77
label = "Puerto Rico gross income"

0 commit comments

Comments
 (0)