policyengine-us 1.445.0__py3-none-any.whl → 1.446.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/parameters/gov/territories/pr/tax/income/taxable_income/deductions/sources.yaml +18 -0
- policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/sources.yaml +6 -6
- policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.yaml +26 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_deductions.py +13 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_exemptions.py +1 -0
- policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.py +6 -0
- {policyengine_us-1.445.0.dist-info → policyengine_us-1.446.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.445.0.dist-info → policyengine_us-1.446.0.dist-info}/RECORD +11 -8
- {policyengine_us-1.445.0.dist-info → policyengine_us-1.446.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.445.0.dist-info → policyengine_us-1.446.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.445.0.dist-info → policyengine_us-1.446.0.dist-info}/licenses/LICENSE +0 -0
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/sources.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
description: Puerto Rico deductions from taxable income.
|
|
2
|
+
values:
|
|
3
|
+
2023-01-01:
|
|
4
|
+
- pr_casualty_loss_deduction
|
|
5
|
+
- pr_charitable_deduction
|
|
6
|
+
- pr_medical_expense_deduction
|
|
7
|
+
- pr_mortgage_deduction
|
|
8
|
+
- pr_education_deduction
|
|
9
|
+
- pr_retirement_deduction
|
|
10
|
+
metadata:
|
|
11
|
+
unit: list
|
|
12
|
+
period: year
|
|
13
|
+
label: Puerto Rico income deductions
|
|
14
|
+
reference:
|
|
15
|
+
- title: P.R. Laws tit. 13, § 30135
|
|
16
|
+
href: https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-c/30135/
|
|
17
|
+
- title: Gov. of Puerto Rico Individual Income Tax Return Form 482.0 4
|
|
18
|
+
href: https://hacienda.pr.gov/sites/default/files/individuals_2024_rev._jul_12_24_9-30-24_informative.pdf#page=4
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/sources.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
description: Puerto Rico
|
|
1
|
+
description: Puerto Rico exemptions from taxable income.
|
|
2
2
|
values:
|
|
3
|
-
|
|
3
|
+
2023-01-01:
|
|
4
4
|
- pr_personal_exemption
|
|
5
|
-
- pr_dependents_exemption
|
|
6
5
|
- pr_veteran_exemption
|
|
6
|
+
- pr_dependents_exemption
|
|
7
7
|
metadata:
|
|
8
8
|
unit: list
|
|
9
9
|
period: year
|
|
10
|
-
label: Puerto Rico
|
|
10
|
+
label: Puerto Rico income exemptions
|
|
11
11
|
reference:
|
|
12
|
-
- title: P.R. Laws tit. 13, § 30138
|
|
12
|
+
- title: P.R. Laws tit. 13, § 30138 (a)(1)-(2)
|
|
13
13
|
href: https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-c/30138/
|
|
14
|
-
- title:
|
|
14
|
+
- title: Gov. of Puerto Rico Form 482.0 2024
|
|
15
15
|
href: https://hacienda.pr.gov/sites/default/files/individuals_2024_rev._jul_12_24_9-30-24_informative.pdf#page=2
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
- name: Base case
|
|
2
|
+
period: 2024
|
|
3
|
+
input:
|
|
4
|
+
pr_agi: 40_000
|
|
5
|
+
pr_casualty_loss_deduction: 1_000
|
|
6
|
+
pr_charitable_deduction: 500
|
|
7
|
+
pr_retirement_deduction: 20_000
|
|
8
|
+
pr_medical_expense_deduction: 0
|
|
9
|
+
pr_mortgage_deduction: 3_000
|
|
10
|
+
pr_education_deduction: 1_500
|
|
11
|
+
pr_personal_exemption: 1_000
|
|
12
|
+
pr_veteran_exemption: 0
|
|
13
|
+
pr_dependents_exemption: 500
|
|
14
|
+
state_code: PR
|
|
15
|
+
output:
|
|
16
|
+
pr_net_taxable_income: 12_500
|
|
17
|
+
|
|
18
|
+
- name: AGI smaller than exemption and deduction sum
|
|
19
|
+
period: 2024
|
|
20
|
+
input:
|
|
21
|
+
pr_agi: 10_000
|
|
22
|
+
pr_casualty_loss_deduction: 10_000
|
|
23
|
+
pr_charitable_deduction: 5
|
|
24
|
+
state_code: PR
|
|
25
|
+
output:
|
|
26
|
+
pr_net_taxable_income: 0
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_deductions.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from policyengine_us.model_api import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class pr_deductions(Variable):
|
|
5
|
+
value_type = float
|
|
6
|
+
entity = TaxUnit
|
|
7
|
+
label = "Puerto Rico deductions"
|
|
8
|
+
unit = USD
|
|
9
|
+
reference = "https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-c/30135/"
|
|
10
|
+
definition_period = YEAR
|
|
11
|
+
defined_for = StateCode.PR
|
|
12
|
+
|
|
13
|
+
adds = "gov.territories.pr.tax.income.taxable_income.deductions.sources"
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_exemptions.py
CHANGED
|
@@ -8,5 +8,6 @@ class pr_exemptions(Variable):
|
|
|
8
8
|
definition_period = YEAR
|
|
9
9
|
unit = USD
|
|
10
10
|
reference = "https://law.justia.com/codes/puerto-rico/title-thirteen/subtitle-17/part-ii/chapter-1005/subchapter-c/30138/"
|
|
11
|
+
defined_for = StateCode.PR
|
|
11
12
|
|
|
12
13
|
adds = "gov.territories.pr.tax.income.taxable_income.exemptions.sources"
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.py
CHANGED
|
@@ -9,3 +9,9 @@ class pr_net_taxable_income(Variable):
|
|
|
9
9
|
unit = USD
|
|
10
10
|
definition_period = YEAR
|
|
11
11
|
defined_for = StateCode.PR
|
|
12
|
+
|
|
13
|
+
def formula(tax_unit, period, parameters):
|
|
14
|
+
agi = tax_unit("pr_agi", period)
|
|
15
|
+
exemptions = tax_unit("pr_exemptions", period)
|
|
16
|
+
deductions = tax_unit("pr_deductions", period)
|
|
17
|
+
return max_(0, agi - exemptions - deductions)
|
|
@@ -3211,6 +3211,7 @@ policyengine_us/parameters/gov/territories/pr/tax/income/gradual_adjustment/thre
|
|
|
3211
3211
|
policyengine_us/parameters/gov/territories/pr/tax/income/gross_income/sources.yaml,sha256=4rB8Sj0-PN1UayxMalENlfgf4rOPPUvXZf2Z_om1hmo,1820
|
|
3212
3212
|
policyengine_us/parameters/gov/territories/pr/tax/income/regular_tax/percentage.yaml,sha256=h3LWf3Jj9UQUU4D9_oW_GjiaWQJD6UjR48R8tiJ5PvE,718
|
|
3213
3213
|
policyengine_us/parameters/gov/territories/pr/tax/income/tax_rate/amount.yaml,sha256=c40feR65hYrrNCq1ie1w-Im4IQl8NrSj6bAXof7zmQs,1050
|
|
3214
|
+
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/sources.yaml,sha256=zbfUpLtpHdlU60ke0kp6T119xEfBS7udJfuwXGZFB-4,711
|
|
3214
3215
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/casualty_loss/separate_percentage.yaml,sha256=KnOLuA34KyrOqRXPYR7xk1mB043XB3OFekCA78uHYbc,771
|
|
3215
3216
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/charity/floor.yaml,sha256=IrNIBHg_UXxYqF_PPOLLRn6fPhkgHu4fnP9mM9gUSNU,796
|
|
3216
3217
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/education/age_threshold.yaml,sha256=A5OTdiX6p0UdGOTp96KLwmnU2ZPgxCGTLpll5OdWq-s,606
|
|
@@ -3222,7 +3223,7 @@ policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductio
|
|
|
3222
3223
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/retirement/age_threshold.yaml,sha256=zJ8Q3XZrh2INvKvW2xx5h1DhXuEtJGjnK-Gv2an4Ijo,559
|
|
3223
3224
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/deductions/retirement/max.yaml,sha256=D3uhpibDaJlhRXDOEu7PyBP-mqENdayWn9k-Y3Oab-g,560
|
|
3224
3225
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/personal.yaml,sha256=56y0Qq2cx1XRF2cuV16iIeogOW1yWwggUQRdKl_yngg,819
|
|
3225
|
-
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/sources.yaml,sha256=
|
|
3226
|
+
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/sources.yaml,sha256=vkwepV2tR-dfo0SLRHw3hhHw12_wRW2Ny-W2YJDruJY,595
|
|
3226
3227
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/veteran.yaml,sha256=Png_1_EJcRdK-ALHKKtx_GW9T-MQ_Qy05chzGkOVRMg,572
|
|
3227
3228
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/dependent/age_threshold/older.yaml,sha256=74MhyAjkxXsKxmOyNbmIIiDS9UnXbHP5bKcYhFBb3Nw,572
|
|
3228
3229
|
policyengine_us/parameters/gov/territories/pr/tax/income/taxable_income/exemptions/dependent/age_threshold/student.yaml,sha256=gIxpF0jKVYuFyETD0L0XuWIrNYEYfSan4Lo8X-VO8iQ,586
|
|
@@ -5388,6 +5389,7 @@ policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/credits/low_
|
|
|
5388
5389
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/credits/refundable_ctc/pr_refundable_ctc.yaml,sha256=uH6Rb2TLLIrAJSkX5zS9eUaeLgLDmUzYXg9Ws79eTyE,434
|
|
5389
5390
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_amount.yaml,sha256=u2kCu4KaAUHTuGLonRjNoIteVGM-BQmEsw_2fc0m4YQ,688
|
|
5390
5391
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_eligible.yaml,sha256=ze5PEdnOUIXt6os0khlGqheYHt9HeIUFNOqo4HwPm8E,298
|
|
5392
|
+
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.yaml,sha256=riHQESiob8pAE0cesJgP6TvtUej2T7ck_lPx0p1gL_E,653
|
|
5391
5393
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/deductions/pr_casualty_loss_deduction.yaml,sha256=FteN_CqJcr_hjNt0BPagZ5bI9i4PwpHa4vCvphQ-FkY,333
|
|
5392
5394
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/deductions/pr_charitable_deduction.yaml,sha256=W6N5RCKT6iKoV6qr_UbdrVmsy8c7NZkIRR-GqDV_oiM,470
|
|
5393
5395
|
policyengine_us/tests/policy/baseline/gov/territories/pr/tax/income/taxable_income/deductions/pr_medical_expense_deduction.yaml,sha256=0swPOBL6tTh5Q2ScDziSdgFBQHmd2m8yutElgjfDHss,897
|
|
@@ -8348,16 +8350,17 @@ policyengine_us/variables/gov/territories/pr/tax/income/credits/refundable_ctc/p
|
|
|
8348
8350
|
policyengine_us/variables/gov/territories/pr/tax/income/credits/refundable_ctc/pr_refundable_ctc_social_security_tax.py,sha256=pVjsUPcD-QUXWTniQgla4e7rSfkTztuOHgxR42DHmD8,497
|
|
8349
8351
|
policyengine_us/variables/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_amount.py,sha256=4ANsIBxCYFcqvIt3Tfi4chOo_xnlB8AlJZ0TO-Ymc-U,931
|
|
8350
8352
|
policyengine_us/variables/gov/territories/pr/tax/income/gradual_adjustment/pr_gradual_adjustment_eligible.py,sha256=qFfGB0oHPx8hVes3_Or0t7Gfko96JCCc6BWFQwrjfYQ,623
|
|
8351
|
-
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.py,sha256=
|
|
8353
|
+
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/pr_net_taxable_income.py,sha256=u0OqtN8kfHzUqREbDZ17WiDaEOwUcZun2AaPkDm-a4Y,623
|
|
8352
8354
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_casualty_loss_deduction.py,sha256=g2QRdt75GmxRZSuzU_9c_uvAjCKXSXQMEACzarVPrAU,886
|
|
8353
8355
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_charitable_deduction.py,sha256=2u9YAoBduN8NKKKSzpWy06wVk5QbAbxj6Tp9bOCtn2o,848
|
|
8356
|
+
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_deductions.py,sha256=eX3T-LDrNd9QfyUONnYFaV01tuC1ezTzIDck_Txt3MU,434
|
|
8354
8357
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_medical_expense_deduction.py,sha256=5U77mChDcF3XOpHujLInWcdboU_JDy7wN64_p33eZRA,743
|
|
8355
8358
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/pr_mortgage_deduction.py,sha256=wnXNQt8ItR8tjLadEMtJloj7w-1n0b9tMzdLMEpevNU,1493
|
|
8356
8359
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/education/pr_education_deduction.py,sha256=tVeBgSOAqj2QxzeGmKptXujZ8mViFAlvG5FgGzBgzQQ,814
|
|
8357
8360
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/education/pr_education_deduction_beneficiary_count.py,sha256=jo7mVDo5u4XLdiXTFRmrhhOwRKocD8N66IxaeFaeNh4,814
|
|
8358
8361
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/retirement/pr_retirement_deduction.py,sha256=BCKO29x6T0wphnIA3ev7vk2xVAMGF33oYQL__yqZemc,876
|
|
8359
8362
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/deductions/retirement/pr_retirement_deduction_eligibility.py,sha256=g1CTdvG4XyJbSHHevvmJRZwE_OIKvtYnmPLpSlXqO5o,743
|
|
8360
|
-
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_exemptions.py,sha256=
|
|
8363
|
+
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_exemptions.py,sha256=O8uVfRzwdEGuGAjZ2ZCcVjFuBfm64JUrtvxZjg-7IzY,434
|
|
8361
8364
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_personal_exemption.py,sha256=If_KjaQ5thOcK8A1rdq9aZXCtCogCrMVL3Wd1xx7GJs,643
|
|
8362
8365
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/pr_veteran_exemption.py,sha256=0IHer0XKp3aaZPSMwh2brXOZhs_EMwW2hzi1pbzEqns,627
|
|
8363
8366
|
policyengine_us/variables/gov/territories/pr/tax/income/taxable_income/exemptions/dependent/pr_dependents_exemption.py,sha256=BWHFOfSxxRWqP07fTRyqgp3G72nNkPoz9sA5bdm5O6g,919
|
|
@@ -8937,8 +8940,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8937
8940
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8938
8941
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8939
8942
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8940
|
-
policyengine_us-1.
|
|
8941
|
-
policyengine_us-1.
|
|
8942
|
-
policyengine_us-1.
|
|
8943
|
-
policyengine_us-1.
|
|
8944
|
-
policyengine_us-1.
|
|
8943
|
+
policyengine_us-1.446.0.dist-info/METADATA,sha256=pXdmPynYPJookA7sM32kN3hzxUFOahXClK3c9mhpkdQ,1649
|
|
8944
|
+
policyengine_us-1.446.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8945
|
+
policyengine_us-1.446.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8946
|
+
policyengine_us-1.446.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8947
|
+
policyengine_us-1.446.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|