policyengine-us 1.397.1__py3-none-any.whl → 1.397.2__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.
Potentially problematic release.
This version of policyengine-us might be problematic. Click here for more details.
- policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/min_children_for_ss_taxes_minus_eitc.yaml +0 -1
- policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml +0 -1
- policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml +1 -1
- policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/integration.yaml +2 -2
- policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py +7 -1
- {policyengine_us-1.397.1.dist-info → policyengine_us-1.397.2.dist-info}/METADATA +1 -1
- {policyengine_us-1.397.1.dist-info → policyengine_us-1.397.2.dist-info}/RECORD +10 -12
- policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.yaml +0 -13
- policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.py +0 -22
- {policyengine_us-1.397.1.dist-info → policyengine_us-1.397.2.dist-info}/WHEEL +0 -0
- {policyengine_us-1.397.1.dist-info → policyengine_us-1.397.2.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.397.1.dist-info → policyengine_us-1.397.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -13,7 +13,13 @@ class ctc_phase_in(Variable):
|
|
|
13
13
|
|
|
14
14
|
ctc = parameters(period).gov.irs.credits.ctc
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
earnings = tax_unit("tax_unit_earned_income", period)
|
|
17
|
+
earnings_over_threshold = max_(
|
|
18
|
+
0, earnings - ctc.refundable.phase_in.threshold
|
|
19
|
+
)
|
|
20
|
+
relevant_earnings = (
|
|
21
|
+
earnings_over_threshold * ctc.refundable.phase_in.rate
|
|
22
|
+
)
|
|
17
23
|
# The other part of the "lesser of" statement is: "the amount by which [the non-refundable CTC]
|
|
18
24
|
# would increase if [tax liability] increased by tax_increase", where tax_increase is the greater of:
|
|
19
25
|
# - the phase-in amount
|
|
@@ -546,8 +546,8 @@ policyengine_us/parameters/gov/irs/credits/ctc/refundable/README.md,sha256=QnNQo
|
|
|
546
546
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/fully_refundable.yaml,sha256=68AypXVeI6cfgPYc91ml_QkgS11gUS-bSr977ThVsI0,315
|
|
547
547
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/individual_max.yaml,sha256=ifdQ0fDJGxAhgqgrgItp8C-QfpBtDVX-Mb6Tv_fyRzk,1569
|
|
548
548
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/README.md,sha256=P8VBDUjxgFm-0laBKluhgiASX8YRfNQPUdLDC2uZbMY,11
|
|
549
|
-
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/min_children_for_ss_taxes_minus_eitc.yaml,sha256=
|
|
550
|
-
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml,sha256=
|
|
549
|
+
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/min_children_for_ss_taxes_minus_eitc.yaml,sha256=ASRtN0qrsbXTbKWgMmEe-mxs2Xa2Xq_wTxKI66jJ0-Q,418
|
|
550
|
+
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml,sha256=BAF7qe9_C7-74MDfCTD7TIGdAwZGdiCFMv0x4wtvSWE,255
|
|
551
551
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/threshold.yaml,sha256=mt_fl9bNufetWofPq3jlfXxgXIFsiR9poYa8hHFChGc,601
|
|
552
552
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/social_security/README.md,sha256=htok4YcXCdYFwOsxNtEtU4P9Ykf2yDrpa2DPFyww9JE,18
|
|
553
553
|
policyengine_us/parameters/gov/irs/credits/ctc/refundable/social_security/add.yaml,sha256=JHAcL3X964dVgSqLKdAQslYYGGER8G7bYWXSuuwZ2Ag,529
|
|
@@ -3379,7 +3379,6 @@ policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/phase_out/arpa/ctc_arp
|
|
|
3379
3379
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_uncapped_phase_out.yaml,sha256=GCj2CowmDh2CPIZ77BCuqvxYdZ7EJcVsstUkA3DPlCA,773
|
|
3380
3380
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_limiting_tax_liability.yaml,sha256=lDTc0mMp1bMAuyDi8UfQ6DymEG4N64CRUqvj1EjhM6c,254
|
|
3381
3381
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_phase_in.yaml,sha256=ivHhR7v2ZMzgj7kIn5Xo0uDkJuvqjLD8EHWvCHIQv0k,1319
|
|
3382
|
-
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.yaml,sha256=zOWDgxLgEKxzXECcHabZI343WiuqNc2MSgeMVvdPWzc,277
|
|
3383
3382
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_refundable_maximum.yaml,sha256=1eEhfK4l_B4wT-KRoR9qkby6YYZPq8Z1SxWgCHOqOIo,582
|
|
3384
3383
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_social_security_tax.yaml,sha256=0IVQeD-OuJhVLvQqkJewP_erb46w_FySnFFAL3I_7D4,1120
|
|
3385
3384
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_value.yaml,sha256=qWA5ci-0JxMnlQFe37FrzcYW58t3C-E6eeZR7uJ481E,1704
|
|
@@ -3436,7 +3435,7 @@ policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gro
|
|
|
3436
3435
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/positive_gross_income.yaml,sha256=Wy5SXR4-XoOyMl0XwOt8cx8SglOKC_iaZDAa1pqG4XI,248
|
|
3437
3436
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/tax_unit_combined_income_for_social_security_taxability.yaml,sha256=1YbLjeANDXrR3BF0R0bB2ACXz-xCXsrS7reQ-tp5uPw,711
|
|
3438
3437
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/tax_unit_ss_combined_income_excess.yaml,sha256=DVfgrDfe44m91V_G2FwQXXCRXAc802D6q6zi88R6u7M,3400
|
|
3439
|
-
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml,sha256=
|
|
3438
|
+
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml,sha256=tBQbJwVzRgbqN9tEFI5ZjwYymUam1_LeQJ3oOCoHqB4,599
|
|
3440
3439
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/irs_employment_income.yaml,sha256=MBfn5bh8acdTxTu_KAeg_RDjOgJ-CHUN--dUMfd8a0k,363
|
|
3441
3440
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/alimony_expense_ald.yaml,sha256=VWBqHVnf8OIaANQ-Spt1wCivCr2YmRUL1DL1kliVatY,1251
|
|
3442
3441
|
policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/auto_loan_interest_deduction.yaml,sha256=thZKFR7I1SX4Jj4INWvAQOz_hC2rZLTOPA5oeEyWJBg,723
|
|
@@ -4386,7 +4385,7 @@ policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/de
|
|
|
4386
4385
|
policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_deductions.yaml,sha256=fzwp9dR2OGXKkVcsrKH0gYcm9w7G2-J5QYeC9rkNDCs,853
|
|
4387
4386
|
policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_itemized_deductions_pre_phaseout.yaml,sha256=PkfFZD-onn61NDMLLyOqjKfMpvF9yJX29yohrxVczPY,2649
|
|
4388
4387
|
policyengine_us/tests/policy/baseline/gov/states/me/tax/income/taxable_income/deductions/me_personal_exemption.yaml,sha256=_1zotldxxQnuLrwel8mITwMXdNdNn-mmlOBSHzhDOHQ,1256
|
|
4389
|
-
policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/integration.yaml,sha256=
|
|
4388
|
+
policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/integration.yaml,sha256=WV6_i25TKAKk_nClEns-ycBM-KBuorBQiL23-8YX7b4,5111
|
|
4390
4389
|
policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_household_resources.yaml,sha256=Ln1QcNLW29Xgsfy7dxsNIEvs3R4YM5ACSOaXXJGAz1E,636
|
|
4391
4390
|
policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_income_tax_before_non_refundable_credits.yaml,sha256=SvWn5J3CYM-KFP1poILHcuIeXlGkx5-bylXQ1pQ0df4,367
|
|
4392
4391
|
policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_income_tax_before_refundable_credits.yaml,sha256=YtMBF7eVrR-lZoU6axbiBgv-qcS3aZoXFBbS2j5PQI8,429
|
|
@@ -5547,8 +5546,7 @@ policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_phase_out_
|
|
|
5547
5546
|
policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_phase_out_threshold.py,sha256=qyQDZt0y7z5P1_gjFB0giSSdRXa1nJGBNEhnya-sDuU,437
|
|
5548
5547
|
policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_uncapped_phase_out.py,sha256=zUnbfmfE3QUFG034ZFIWQUCpqCFae9v2NZIqUAiX3HE,1000
|
|
5549
5548
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_limiting_tax_liability.py,sha256=B3O-6-cUFCjYYav-33IzPecj3gxKpuzCM-5Qp-CHGrg,1176
|
|
5550
|
-
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py,sha256=
|
|
5551
|
-
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.py,sha256=hpFDU12BIMlhs5ifnKigYfjVamD3ZJWk_zfxnJiCKW8,666
|
|
5549
|
+
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py,sha256=hEAk_KyVnFowPOH07w1n7K16nK-7kV631RZg77sgMAc,1457
|
|
5552
5550
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_refundable_maximum.py,sha256=O41qkbyC2ywa2OZVA-MnFwSn9e682DM0HQ35ipw95sI,1182
|
|
5553
5551
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_social_security_tax.py,sha256=oONNa6D5UBuTBN3z5xU0fkGPrnEq-27OE7jhkFatTpk,547
|
|
5554
5552
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/refundable_ctc.py,sha256=44Q68rgJ53oU88oT9yDyxr0f4il1Ooukfj1FdAVK-SA,1726
|
|
@@ -8397,8 +8395,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8397
8395
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8398
8396
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8399
8397
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8400
|
-
policyengine_us-1.397.
|
|
8401
|
-
policyengine_us-1.397.
|
|
8402
|
-
policyengine_us-1.397.
|
|
8403
|
-
policyengine_us-1.397.
|
|
8404
|
-
policyengine_us-1.397.
|
|
8398
|
+
policyengine_us-1.397.2.dist-info/METADATA,sha256=yDVKSbXNNjaTxQkGYkneqSuZ8D4fOfA-IKk2sv8lgE4,1649
|
|
8399
|
+
policyengine_us-1.397.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8400
|
+
policyengine_us-1.397.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8401
|
+
policyengine_us-1.397.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8402
|
+
policyengine_us-1.397.2.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
- name: Income below threshold
|
|
2
|
-
period: 2023
|
|
3
|
-
input:
|
|
4
|
-
tax_unit_earned_income: 1_000
|
|
5
|
-
output:
|
|
6
|
-
ctc_phase_in_relevant_earnings: 0
|
|
7
|
-
|
|
8
|
-
- name: Income above threshold
|
|
9
|
-
period: 2023
|
|
10
|
-
input:
|
|
11
|
-
tax_unit_earned_income: 5_000
|
|
12
|
-
output:
|
|
13
|
-
ctc_phase_in_relevant_earnings: 225
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
from policyengine_us.model_api import *
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class ctc_phase_in_relevant_earnings(Variable):
|
|
5
|
-
value_type = float
|
|
6
|
-
entity = TaxUnit
|
|
7
|
-
label = "Relevant earnings for the CTC phase-in"
|
|
8
|
-
unit = USD
|
|
9
|
-
definition_period = YEAR
|
|
10
|
-
reference = "https://www.law.cornell.edu/uscode/text/26/24#d"
|
|
11
|
-
|
|
12
|
-
def formula(tax_unit, period, parameters):
|
|
13
|
-
|
|
14
|
-
ctc = parameters(period).gov.irs.credits.ctc
|
|
15
|
-
|
|
16
|
-
earnings = tax_unit("tax_unit_earned_income", period)
|
|
17
|
-
earnings_over_threshold = max_(
|
|
18
|
-
0, earnings - ctc.refundable.phase_in.threshold
|
|
19
|
-
)
|
|
20
|
-
return (
|
|
21
|
-
earnings_over_threshold * ctc.refundable.phase_in.rate
|
|
22
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|