policyengine-us 1.446.1__py3-none-any.whl → 1.447.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi.yaml +17 -0
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi_person.yaml +17 -0
- policyengine_us/variables/gov/territories/pr/tax/income/pr_agi.py +11 -1
- policyengine_us/variables/gov/territories/pr/tax/income/pr_agi_person.py +11 -1
- {policyengine_us-1.446.1.dist-info → policyengine_us-1.447.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.446.1.dist-info → policyengine_us-1.447.0.dist-info}/RECORD +9 -7
- {policyengine_us-1.446.1.dist-info → policyengine_us-1.447.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.446.1.dist-info → policyengine_us-1.447.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.446.1.dist-info → policyengine_us-1.447.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
- name: Total income greater than alimony
|
|
2
|
+
period: 2024
|
|
3
|
+
input:
|
|
4
|
+
pr_gross_income: 20_000
|
|
5
|
+
alimony_expense: 5_000
|
|
6
|
+
state_code: PR
|
|
7
|
+
output:
|
|
8
|
+
pr_agi: 15_000
|
|
9
|
+
|
|
10
|
+
- name: Alimony greater than total income
|
|
11
|
+
period: 2024
|
|
12
|
+
input:
|
|
13
|
+
pr_gross_income: 5_000
|
|
14
|
+
alimony_expense: 10_000
|
|
15
|
+
state_code: PR
|
|
16
|
+
output:
|
|
17
|
+
pr_agi: 0
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
- name: Joint
|
|
2
|
+
period: 2024
|
|
3
|
+
input:
|
|
4
|
+
pr_agi: 20_000
|
|
5
|
+
filing_status: JOINT
|
|
6
|
+
state_code: PR
|
|
7
|
+
output:
|
|
8
|
+
pr_agi_person: 10_000
|
|
9
|
+
|
|
10
|
+
- name: Separate
|
|
11
|
+
period: 2024
|
|
12
|
+
input:
|
|
13
|
+
pr_agi: 20_000
|
|
14
|
+
filing_status: SEPARATE
|
|
15
|
+
state_code: PR
|
|
16
|
+
output:
|
|
17
|
+
pr_agi_person: 20_000
|
|
@@ -8,4 +8,14 @@ class pr_agi(Variable):
|
|
|
8
8
|
unit = USD
|
|
9
9
|
definition_period = YEAR
|
|
10
10
|
defined_for = StateCode.PR
|
|
11
|
-
reference =
|
|
11
|
+
reference = (
|
|
12
|
+
"https://hacienda.pr.gov/sites/default/files/individuals_2024_rev._jul_12_24_9-30-24_informative.pdf#page=2",
|
|
13
|
+
"https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-a/30103/",
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
# Discrepancy: legal code defines Puerto Rico AGI as gross income minus deductions and exemptions, among other items
|
|
17
|
+
def formula(tax_unit, period, parameters):
|
|
18
|
+
# person = tax_unit.members
|
|
19
|
+
total_income = add(tax_unit, period, ["pr_gross_income"])
|
|
20
|
+
alimony_paid = add(tax_unit, period, ["alimony_expense"])
|
|
21
|
+
return max_(0, total_income - alimony_paid)
|
|
@@ -8,4 +8,14 @@ class pr_agi_person(Variable):
|
|
|
8
8
|
unit = USD
|
|
9
9
|
definition_period = YEAR
|
|
10
10
|
defined_for = StateCode.PR
|
|
11
|
-
reference =
|
|
11
|
+
reference = (
|
|
12
|
+
"https://hacienda.pr.gov/sites/default/files/individuals_2024_rev._jul_12_24_9-30-24_informative.pdf#page=2",
|
|
13
|
+
"https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-a/30103/",
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
def formula(person, period, parameters):
|
|
17
|
+
filing_status = person.tax_unit("filing_status", period)
|
|
18
|
+
filing_statuses = filing_status.possible_values
|
|
19
|
+
agi_taxunit = person.tax_unit("pr_agi", period)
|
|
20
|
+
frac = where(filing_status == filing_statuses.JOINT, 0.5, 1.0)
|
|
21
|
+
return agi_taxunit * frac
|
|
@@ -5378,6 +5378,8 @@ policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/seni
|
|
|
5378
5378
|
policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/social_security/wv_social_security_benefits_subtraction_eligible.yaml,sha256=14LNSRJcEUKcNrs0TeQbBbDIyo_oEjl796L89IRRrtY,2401
|
|
5379
5379
|
policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/social_security/wv_social_security_benefits_subtraction_person.yaml,sha256=FYlFFRNZkMEs3-BBc9aoLKqjQE1vYQYMrAw9w3OyvYA,7445
|
|
5380
5380
|
policyengine_us/tests/policy/baseline/gov/tax/income/integration.yaml,sha256=1kwIJmcmqG6X5kZjCga-hfsclylJB0fWVXSdh08OZHM,706
|
|
5381
|
+
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi.yaml,sha256=3KYYppk94c0n1eGMagYYPodWYO_hBkWb07HnPN3AsT0,333
|
|
5382
|
+
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_agi_person.yaml,sha256=f4cfqcVls_zfO8r-3uZRha1fxs9FkVkfOwR5cEXPxsI,280
|
|
5381
5383
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_normal_tax.yaml,sha256=79H2cj93JYnaUZGdG9zNatvf1s3SHzgkxJU6Ujzhm7Q,536
|
|
5382
5384
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/pr_tax_before_credits.yaml,sha256=Zqy1wFK2JWRlYUq_dNssdDdDZKJcHC6BgsJqOdHSMic,415
|
|
5383
5385
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/credits/earned_income/integration.yaml,sha256=-9Q9J78TOZuPG8LLK5PqHM4dgi9PmT3KB08jgPNTHFU,1570
|
|
@@ -8330,8 +8332,8 @@ policyengine_us/variables/gov/states/wv/tax/income/subtractions/social_security/
|
|
|
8330
8332
|
policyengine_us/variables/gov/states/wv/tax/income/subtractions/social_security/wv_social_security_benefits_subtraction_eligible.py,sha256=LXBlZQyL9U8pozDaKQ32vBhfijNjhezsobwPxN3aLPc,1272
|
|
8331
8333
|
policyengine_us/variables/gov/states/wv/tax/income/subtractions/social_security/wv_social_security_benefits_subtraction_person.py,sha256=tqjqCyI36lbExGp0vjhMd6wEB0iMwj_p1MaqV-cBJUI,1952
|
|
8332
8334
|
policyengine_us/variables/gov/territories/pr/pr_is_tax_unit_dependent.py,sha256=gRsYnnDuDbrM-9CIUWFvAsHEj5sK5_HA7GJgOdcQTWM,1493
|
|
8333
|
-
policyengine_us/variables/gov/territories/pr/tax/income/pr_agi.py,sha256=
|
|
8334
|
-
policyengine_us/variables/gov/territories/pr/tax/income/pr_agi_person.py,sha256=
|
|
8335
|
+
policyengine_us/variables/gov/territories/pr/tax/income/pr_agi.py,sha256=rLZX8fhZKTsEHZSpHRMho5j9KFsENxUcfRbIr7BP6EQ,884
|
|
8336
|
+
policyengine_us/variables/gov/territories/pr/tax/income/pr_agi_person.py,sha256=6tiozIFG7zmMqgfuHTZcyVUkDN2AJOGNdFN5Y8lXdbo,842
|
|
8335
8337
|
policyengine_us/variables/gov/territories/pr/tax/income/pr_gross_income.py,sha256=P2Mn2tUhrnP2LsIx4P0OFz67oo6t9NKZKpKCzqb1RLc,399
|
|
8336
8338
|
policyengine_us/variables/gov/territories/pr/tax/income/pr_gross_income_person.py,sha256=SFZtLDY2V-a1qH8p_EvIvOYhUsH_cjhHJBWYnmBB3jU,431
|
|
8337
8339
|
policyengine_us/variables/gov/territories/pr/tax/income/pr_income_tax.py,sha256=oSXFwy96SUJkhVN0MwaW_zpmrN-nL9BHtJKyGsuoRao,442
|
|
@@ -8941,8 +8943,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8941
8943
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8942
8944
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8943
8945
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8944
|
-
policyengine_us-1.
|
|
8945
|
-
policyengine_us-1.
|
|
8946
|
-
policyengine_us-1.
|
|
8947
|
-
policyengine_us-1.
|
|
8948
|
-
policyengine_us-1.
|
|
8946
|
+
policyengine_us-1.447.0.dist-info/METADATA,sha256=uxT9qqgfKOo7UsHelvrgbThb-aYoJU9RNMtV9T7j1kE,1649
|
|
8947
|
+
policyengine_us-1.447.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8948
|
+
policyengine_us-1.447.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8949
|
+
policyengine_us-1.447.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8950
|
+
policyengine_us-1.447.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|