policyengine-us 1.397.2__py3-none-any.whl → 1.398.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.

Potentially problematic release.


This version of policyengine-us might be problematic. Click here for more details.

@@ -3,6 +3,7 @@ values:
3
3
  0000-01-01: 50
4
4
  metadata:
5
5
  unit: currency-USD
6
+ period: year
6
7
  label: CTC phase-out amount
7
8
  reference:
8
9
  - title: U.S.C 26 U.S. Code § 24(b)(1)
@@ -3,6 +3,7 @@ values:
3
3
  0000-01-01: 1_000
4
4
  metadata:
5
5
  unit: currency-USD
6
+ period: year
6
7
  label: CTC phase-out increment (ARPA)
7
8
  reference:
8
9
  - title: U.S.C 26 U.S. Code § 24(i)(4)(A)
@@ -5,6 +5,7 @@ values:
5
5
  2022-01-01: false
6
6
  metadata:
7
7
  unit: bool
8
+ period: year
8
9
  label: Fully refundable CTC
9
10
  reference:
10
11
  - title: 26 U.S. Code § 24(i)(1)
@@ -3,6 +3,7 @@ values:
3
3
  2013-01-01: 3
4
4
  metadata:
5
5
  unit: person
6
+ period: year
6
7
  label: Minimum children to consider Social Security taxes minus EITC in refundable CTC
7
8
  reference:
8
9
  - title: 26 U.S. Code § 24(d)(1)(B)(i)
@@ -3,6 +3,7 @@ values:
3
3
  2013-01-01: 0.15
4
4
  metadata:
5
5
  unit: /1
6
+ period: year
6
7
  label: CTC refundable phase-in rate
7
8
  reference:
8
9
  - title: 26 U.S. Code § 24(d)(1)(B)(i)
@@ -11,4 +11,4 @@ metadata:
11
11
  href: https://www.law.cornell.edu/uscode/text/26/86#b_1
12
12
  - title: IRS Publication 915 - Social Security and Equivalent Railroad Retirement Benefits
13
13
  href: https://www.irs.gov/publications/p915
14
-
14
+
@@ -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: 375
@@ -10,16 +10,8 @@ class ctc_phase_in(Variable):
10
10
  reference = "https://www.law.cornell.edu/uscode/text/26/24#d"
11
11
 
12
12
  def formula(tax_unit, period, parameters):
13
-
14
13
  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
- relevant_earnings = (
21
- earnings_over_threshold * ctc.refundable.phase_in.rate
22
- )
14
+ relevant_earnings = tax_unit("ctc_phase_in_relevant_earnings", period)
23
15
  # The other part of the "lesser of" statement is: "the amount by which [the non-refundable CTC]
24
16
  # would increase if [tax liability] increased by tax_increase", where tax_increase is the greater of:
25
17
  # - the phase-in amount
@@ -0,0 +1,20 @@
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 earnings_over_threshold * ctc.refundable.phase_in.rate
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.397.2
3
+ Version: 1.398.0
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -534,8 +534,8 @@ policyengine_us/parameters/gov/irs/credits/ctc/amount/arpa.yaml,sha256=hQtzOcvmP
534
534
  policyengine_us/parameters/gov/irs/credits/ctc/amount/arpa_expansion_cap_percent_of_threshold_diff.yaml,sha256=JxLEgJd9nFeKN3WKFEPdUAAffNEHkBOenRDoIHsIP9A,417
535
535
  policyengine_us/parameters/gov/irs/credits/ctc/amount/base.yaml,sha256=kLt8P6lEr3lZ4HZpRGfFGZwAX_3uBnn1KRFd_BwUmik,1444
536
536
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/README.md,sha256=as4F3ZWjX2p1whyLcWNiM5zZH0FEnRNwqtJWNNJSURE,12
537
- policyengine_us/parameters/gov/irs/credits/ctc/phase_out/amount.yaml,sha256=YuGSpHAF2j6Jx3CragzuXs4Uz-snxvwmMx9XGu7DfqA,345
538
- policyengine_us/parameters/gov/irs/credits/ctc/phase_out/increment.yaml,sha256=xWfG5boE2d_cpXdbM_Uhopqy_kx2_dtHuZ6SEfaNDQE,411
537
+ policyengine_us/parameters/gov/irs/credits/ctc/phase_out/amount.yaml,sha256=py3oy_Mzp4cxP2TunL0gQICqMmb_UCYuuHdhHbnFqbA,360
538
+ policyengine_us/parameters/gov/irs/credits/ctc/phase_out/increment.yaml,sha256=v2R3A290YPsoUA3RdfnYy_cKuPFwJOSkzVYrn8JzADg,426
539
539
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/threshold.yaml,sha256=hSrYrN28NQZvsgkVcdfQKvv3Mx-eGLp3aJPZcKH94Mg,897
540
540
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/arpa/README.md,sha256=-0h9Xr3n2B8G6Ep8RQxrnDD8eYPZNcLGv3trglHLl2Y,7
541
541
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/arpa/amount.yaml,sha256=o-0u655pixgGwPs6TMaDGfs_C2PJ01G0zXrX97Rn8Uo,392
@@ -543,11 +543,11 @@ policyengine_us/parameters/gov/irs/credits/ctc/phase_out/arpa/in_effect.yaml,sha
543
543
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/arpa/increment.yaml,sha256=LM-GOFxzf0ED7a5TMO17goaR_HrE2Ka-n_7PLHSS2I0,364
544
544
  policyengine_us/parameters/gov/irs/credits/ctc/phase_out/arpa/threshold.yaml,sha256=JmABeQC_zNe2s0BAxYq9tuHqcjpRlYUgoEgxp71IlUU,458
545
545
  policyengine_us/parameters/gov/irs/credits/ctc/refundable/README.md,sha256=QnNQoUkU93X-UkYYkxne-Q4qKtDwjLT7RHn8SGfKB5Y,16
546
- policyengine_us/parameters/gov/irs/credits/ctc/refundable/fully_refundable.yaml,sha256=68AypXVeI6cfgPYc91ml_QkgS11gUS-bSr977ThVsI0,315
546
+ policyengine_us/parameters/gov/irs/credits/ctc/refundable/fully_refundable.yaml,sha256=rT_JiURrq64qDHKnzCXtwlIS3-X9-EGeFHZTzBb_S3Y,330
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=ASRtN0qrsbXTbKWgMmEe-mxs2Xa2Xq_wTxKI66jJ0-Q,418
550
- policyengine_us/parameters/gov/irs/credits/ctc/refundable/phase_in/rate.yaml,sha256=BAF7qe9_C7-74MDfCTD7TIGdAwZGdiCFMv0x4wtvSWE,255
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
@@ -744,7 +744,7 @@ policyengine_us/parameters/gov/irs/self_employment/net_earnings_exemption.yaml,s
744
744
  policyengine_us/parameters/gov/irs/self_employment/rate/medicare.yaml,sha256=Oz4FpycX_3krHGjXeUOaDDBJSMRWQeJDtNxlvDMl-so,265
745
745
  policyengine_us/parameters/gov/irs/self_employment/rate/social_security.yaml,sha256=nSxC_iF9x1Of7uvsPRqviPdaLwXLVL2hAJyZtGp62eE,276
746
746
  policyengine_us/parameters/gov/irs/social_security/README.md,sha256=htok4YcXCdYFwOsxNtEtU4P9Ykf2yDrpa2DPFyww9JE,18
747
- policyengine_us/parameters/gov/irs/social_security/taxability/combined_income_ss_fraction.yaml,sha256=Ot_YEbEGAee7qTzuaxlOMggKmXzckDwRgPJI-fO9i1I,490
747
+ policyengine_us/parameters/gov/irs/social_security/taxability/combined_income_ss_fraction.yaml,sha256=fvuKjwx8UBTaGs6J5Z6M8-LomIu8sS280JzWoQ4vBdQ,491
748
748
  policyengine_us/parameters/gov/irs/social_security/taxability/income/revoked_deductions.yaml,sha256=X9ts8sZ5G_pfbxY7TOAqR99e0Jsn0e7pf_W2qritgw4,562
749
749
  policyengine_us/parameters/gov/irs/social_security/taxability/rate/additional.yaml,sha256=BHbmDfYtuQdcWN88fZo1GrsnwDM2c44toDRQTx_MCGg,430
750
750
  policyengine_us/parameters/gov/irs/social_security/taxability/rate/base.yaml,sha256=C1dY1-XbegpqOGxQ7gjhaB5GI0vslK2d5mbzbt6ZlKc,425
@@ -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=I2-LzSZ2vaf0vaJpbQwUOIvt7B1PYtvt30wX-Ad8SAo,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=hEAk_KyVnFowPOH07w1n7K16nK-7kV631RZg77sgMAc,1457
5550
+ policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in.py,sha256=J30Kim6pnPaHeg5Ox21AEsvNvQ54GIl0oKm2wW7IFUc,1255
5551
+ policyengine_us/variables/gov/irs/credits/ctc/refundable/ctc_phase_in_relevant_earnings.py,sha256=tu6b_LOuWdKTM_WNCPB6ozZhUJDCzyeKj9vxLnZUbnE,642
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.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,,
8400
+ policyengine_us-1.398.0.dist-info/METADATA,sha256=BlFC8-0Y6rzeR8wIiXMNyea7wqFzZ5qzmteFqTG9Yms,1649
8401
+ policyengine_us-1.398.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8402
+ policyengine_us-1.398.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8403
+ policyengine_us-1.398.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8404
+ policyengine_us-1.398.0.dist-info/RECORD,,