policyengine-us 1.397.0__py3-none-any.whl → 1.397.1__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 +1 -0
- policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml +1 -0
- policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.yaml +13 -0
- policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py +1 -7
- policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.py +22 -0
- {policyengine_us-1.397.0.dist-info → policyengine_us-1.397.1.dist-info}/METADATA +1 -1
- {policyengine_us-1.397.0.dist-info → policyengine_us-1.397.1.dist-info}/RECORD +10 -8
- {policyengine_us-1.397.0.dist-info → policyengine_us-1.397.1.dist-info}/WHEEL +0 -0
- {policyengine_us-1.397.0.dist-info → policyengine_us-1.397.1.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.397.0.dist-info → policyengine_us-1.397.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -13,13 +13,7 @@ class ctc_phase_in(Variable):
|
|
|
13
13
|
|
|
14
14
|
ctc = parameters(period).gov.irs.credits.ctc
|
|
15
15
|
|
|
16
|
-
|
|
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
|
-
)
|
|
16
|
+
relevant_earnings = tax_unit("ctc_phase_in_relevant_earnings", period)
|
|
23
17
|
# The other part of the "lesser of" statement is: "the amount by which [the non-refundable CTC]
|
|
24
18
|
# would increase if [tax liability] increased by tax_increase", where tax_increase is the greater of:
|
|
25
19
|
# - the phase-in amount
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
)
|
|
@@ -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=8D82wfPNccQGyv9Y2cv1Jgz-w6brLbMLVtOy3YfUNXQ,433
|
|
550
|
+
policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml,sha256=FO0YjPl__IdxsGk2lNMxmuxebEM-wt3G8ODzWuukzKI,270
|
|
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,6 +3379,7 @@ 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
|
|
3382
3383
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_refundable_maximum.yaml,sha256=1eEhfK4l_B4wT-KRoR9qkby6YYZPq8Z1SxWgCHOqOIo,582
|
|
3383
3384
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_social_security_tax.yaml,sha256=0IVQeD-OuJhVLvQqkJewP_erb46w_FySnFFAL3I_7D4,1120
|
|
3384
3385
|
policyengine_us/tests/policy/baseline/gov/irs/credits/ctc/refundable/ctc_value.yaml,sha256=qWA5ci-0JxMnlQFe37FrzcYW58t3C-E6eeZR7uJ481E,1704
|
|
@@ -5546,7 +5547,8 @@ policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_phase_out_
|
|
|
5546
5547
|
policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_phase_out_threshold.py,sha256=qyQDZt0y7z5P1_gjFB0giSSdRXa1nJGBNEhnya-sDuU,437
|
|
5547
5548
|
policyengine_us/variables/gov/irs/credits/ctc/phase_out/arpa/ctc_arpa_uncapped_phase_out.py,sha256=zUnbfmfE3QUFG034ZFIWQUCpqCFae9v2NZIqUAiX3HE,1000
|
|
5548
5549
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_limiting_tax_liability.py,sha256=B3O-6-cUFCjYYav-33IzPecj3gxKpuzCM-5Qp-CHGrg,1176
|
|
5549
|
-
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py,sha256=
|
|
5550
|
+
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py,sha256=6RAtIsY76Te3ahM8roDazjhQdmN8CtJoQgkLLH5EG0k,1257
|
|
5551
|
+
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.py,sha256=hpFDU12BIMlhs5ifnKigYfjVamD3ZJWk_zfxnJiCKW8,666
|
|
5550
5552
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_refundable_maximum.py,sha256=O41qkbyC2ywa2OZVA-MnFwSn9e682DM0HQ35ipw95sI,1182
|
|
5551
5553
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_social_security_tax.py,sha256=oONNa6D5UBuTBN3z5xU0fkGPrnEq-27OE7jhkFatTpk,547
|
|
5552
5554
|
policyengine_us/variables/gov/irs/credits/ctc/refundable/refundable_ctc.py,sha256=44Q68rgJ53oU88oT9yDyxr0f4il1Ooukfj1FdAVK-SA,1726
|
|
@@ -8395,8 +8397,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8395
8397
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8396
8398
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8397
8399
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8398
|
-
policyengine_us-1.397.
|
|
8399
|
-
policyengine_us-1.397.
|
|
8400
|
-
policyengine_us-1.397.
|
|
8401
|
-
policyengine_us-1.397.
|
|
8402
|
-
policyengine_us-1.397.
|
|
8400
|
+
policyengine_us-1.397.1.dist-info/METADATA,sha256=mBo97LtJ9xCVE_ty_jgbqHyClcPdy5Z-9NsvZRQSE88,1649
|
|
8401
|
+
policyengine_us-1.397.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8402
|
+
policyengine_us-1.397.1.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8403
|
+
policyengine_us-1.397.1.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8404
|
+
policyengine_us-1.397.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|