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

@@ -0,0 +1,14 @@
1
+ description: The United States includes this fraction of Social Security benefits for determining taxability.
2
+ values:
3
+ 1984-01-01: 0.5
4
+
5
+ metadata:
6
+ unit: /1
7
+ period: year
8
+ label: Social Security fraction for combined income calculation
9
+ reference:
10
+ - title: 26 U.S. Code § 86(b)(1)
11
+ href: https://www.law.cornell.edu/uscode/text/26/86#b_1
12
+ - title: IRS Publication 915 - Social Security and Equivalent Railroad Retirement Benefits
13
+ href: https://www.irs.gov/publications/p915
14
+
@@ -3,6 +3,7 @@ values:
3
3
  2021-01-01: 1
4
4
  2022-01-01: 0.9
5
5
  2023-01-01: 0.56
6
+ 2024-01-01: 0.52
6
7
 
7
8
  metadata:
8
9
  period: year
@@ -23,3 +24,5 @@ metadata:
23
24
  href: https://www.efile.com/pdf/5988.pdf#page=11
24
25
  - title: Michigan 2023 Book MI-1040CR7 Home Heating Instructions Line 47
25
26
  href: https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Forms/2023/2023-IIT-Forms/BOOK_MI-1040CR-7.pdf#page=9
27
+ - title: 2024 Michigan Home Heating Credit Claim MI-1040CR-7 Line 47
28
+ href: https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Forms/IIT/TY2024/MI-1040CR-7.pdf#page=2
@@ -0,0 +1,21 @@
1
+ - name: Test combined income calculation uses separate parameter
2
+ period: 2025
3
+ absolute_error_margin: 1
4
+ input:
5
+ people:
6
+ person1:
7
+ age: 67
8
+ social_security: 20_000
9
+ employment_income: 30_000
10
+ tax_units:
11
+ tax_unit:
12
+ members: [person1]
13
+ filing_status: SINGLE
14
+ households:
15
+ household:
16
+ members: [person1]
17
+ state_code: CA
18
+ output:
19
+ # Combined income should be 30_000 + 0.5 * 20_000 = 40_000
20
+ # (using the default 0.5 fraction from the new parameter)
21
+ tax_unit_combined_income_for_social_security_taxability: 40_000
@@ -16,11 +16,10 @@ class tax_unit_combined_income_for_social_security_taxability(Variable):
16
16
  p = parameters(period).gov.irs.social_security.taxability
17
17
  gross_ss = tax_unit("tax_unit_social_security", period)
18
18
 
19
- # The legislation directs the usage an income definition that is
19
+ # The legislation directs the usage of an income definition that is
20
20
  # a particularly modified AGI, plus half of gross Social Security
21
- # payments. We assume that the 'half' here is the same underlying
22
- # parameter as the lower taxability marginal rate (also 50% in the
23
- # baseline), and that they would be mechanically the same parameter.
21
+ # payments. Per IRC Section 86(b)(1), this fraction is always 0.5
22
+ # regardless of the taxation rates applied to the benefits.
24
23
 
25
- ss_fraction = p.rate.base * gross_ss
24
+ ss_fraction = p.combined_income_ss_fraction * gross_ss
26
25
  return tax_unit("taxable_ss_magi", period) + ss_fraction
@@ -14,11 +14,10 @@ class tax_unit_ss_combined_income_excess(Variable):
14
14
  period
15
15
  ).gov.irs.social_security.taxability.threshold.base
16
16
 
17
- # The legislation directs the usage an income definition that is
17
+ # The legislation directs the usage of an income definition that is
18
18
  # a particularly modified AGI, plus half of gross Social Security
19
- # payments. We assume that the 'half' here is the same underlying
20
- # parameter as the lower taxability marginal rate (also 50% in the
21
- # baseline), and that they would be mechanically the same parameter.
19
+ # payments. Per IRC Section 86(b)(1), this fraction is always 0.5
20
+ # and is handled by the combined_income_ss_fraction parameter.
22
21
 
23
22
  combined_income = tax_unit(
24
23
  "tax_unit_combined_income_for_social_security_taxability", period
@@ -14,11 +14,10 @@ class tax_unit_taxable_social_security(Variable):
14
14
  p = parameters(period).gov.irs.social_security.taxability
15
15
  gross_ss = tax_unit("tax_unit_social_security", period)
16
16
 
17
- # The legislation directs the usage an income definition that is
17
+ # The legislation directs the usage of an income definition that is
18
18
  # a particularly modified AGI, plus half of gross Social Security
19
- # payments. We assume that the 'half' here is the same underlying
20
- # parameter as the lower taxability marginal rate (also 50% in the
21
- # baseline), and that they would be mechanically the same parameter.
19
+ # payments. Per IRC Section 86(b)(1), this fraction is always 0.5
20
+ # and is handled by the combined_income_ss_fraction parameter.
22
21
 
23
22
  combined_income = tax_unit(
24
23
  "tax_unit_combined_income_for_social_security_taxability", period
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.395.1
3
+ Version: 1.396.0
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -744,6 +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
748
  policyengine_us/parameters/gov/irs/social_security/taxability/income/revoked_deductions.yaml,sha256=X9ts8sZ5G_pfbxY7TOAqR99e0Jsn0e7pf_W2qritgw4,562
748
749
  policyengine_us/parameters/gov/irs/social_security/taxability/rate/additional.yaml,sha256=BHbmDfYtuQdcWN88fZo1GrsnwDM2c44toDRQTx_MCGg,430
749
750
  policyengine_us/parameters/gov/irs/social_security/taxability/rate/base.yaml,sha256=C1dY1-XbegpqOGxQ7gjhaB5GI0vslK2d5mbzbt6ZlKc,425
@@ -2017,7 +2018,7 @@ policyengine_us/parameters/gov/states/mi/tax/income/subtractions.yaml,sha256=HTs
2017
2018
  policyengine_us/parameters/gov/states/mi/tax/income/credits/refundable.yaml,sha256=sjaYWT-DDWkvzmxYYRD6oGukb0OFHerAlSJQ0tRANKA,814
2018
2019
  policyengine_us/parameters/gov/states/mi/tax/income/credits/eitc/README.md,sha256=bNY_E7hkmVxzqBclFXt5PWxGKlgCZ8Vz9i2Fmik_1yE,26
2019
2020
  policyengine_us/parameters/gov/states/mi/tax/income/credits/eitc/match.yaml,sha256=qArah9tDkHcyS2LDUV2RkpxQpePzPZOo3QZ-tyWxHQ8,1059
2020
- policyengine_us/parameters/gov/states/mi/tax/income/credits/home_heating/credit_percentage.yaml,sha256=1ik2TB2qLT1pYAsC5GdK1GsPC3ZBWAgh8Xc-6htr-sU,1496
2021
+ policyengine_us/parameters/gov/states/mi/tax/income/credits/home_heating/credit_percentage.yaml,sha256=DSx8lD0w48iQkynMOFs8dEa7o-mSpanApGcIPivIaoc,1702
2021
2022
  policyengine_us/parameters/gov/states/mi/tax/income/credits/home_heating/additional_exemption/amount.yaml,sha256=bH-PkyjHkWO06NBDx-Wj8lZI7CB1A8fzs0iFmL4yyeI,1248
2022
2023
  policyengine_us/parameters/gov/states/mi/tax/income/credits/home_heating/additional_exemption/limit.yaml,sha256=-StolG1nIT37T2wcfUb9MVnY_mr_2HQgU3_9QJkEI5s,1127
2023
2024
  policyengine_us/parameters/gov/states/mi/tax/income/credits/home_heating/alternate/heating_costs/cap.yaml,sha256=eyd-JJlA9bOXK1p7lFcFeO3S42IXiZahWon44x1DeaI,1378
@@ -3434,6 +3435,7 @@ policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gro
3434
3435
  policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/positive_gross_income.yaml,sha256=Wy5SXR4-XoOyMl0XwOt8cx8SglOKC_iaZDAa1pqG4XI,248
3435
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
3436
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
3438
+ policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml,sha256=SIOP3xMACn12rOA9OLA8Pfvdb1epqf4BtZXeRz015_M,598
3437
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
3438
3440
  policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/alimony_expense_ald.yaml,sha256=VWBqHVnf8OIaANQ-Spt1wCivCr2YmRUL1DL1kliVatY,1251
3439
3441
  policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/auto_loan_interest_deduction.yaml,sha256=thZKFR7I1SX4Jj4INWvAQOz_hC2rZLTOPA5oeEyWJBg,723
@@ -5655,10 +5657,10 @@ policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/ir
5655
5657
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/earned_income/tax_unit_earned_income.py,sha256=WJGKWeqWSrjwvbDQtd1q6LTWsSghOHK0dn-WDkljqow,264
5656
5658
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/earned_income/tax_unit_earned_income_last_year.py,sha256=Sl00OIM3_izdirJ7-gZie1sVmtfacT74KyuLNWiVYhI,294
5657
5659
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_exempt_social_security.py,sha256=u821MIdKYZRORepQCYKCbTtL82FoAFlx-t6iT0HDoQU,309
5658
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_combined_income_for_social_security_taxability.py,sha256=XuaZXxgV0jh3PLaff3cdwnuBwXrwezHGR6Oifbo9nJ8,1069
5660
+ policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_combined_income_for_social_security_taxability.py,sha256=nFIRNtKGve9raB6hUZfZlMtPRhGDtaCuvqm32HHN6cE,1006
5659
5661
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_social_security.py,sha256=lgQIQOgtnvkbnDfvIFMnzryDaISDaD9VenOZNyr-Fd0,243
5660
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_ss_combined_income_excess.py,sha256=BzxzZN1U61WqXzNS5Gk-TrkMjHNPwDCMwUjHQK-alvI,1487
5661
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_taxable_social_security.py,sha256=QgqoYA5fZSZ5OTWiPHPevH-_FwHzJq9RxXzFrLyVcPM,2895
5662
+ policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_ss_combined_income_excess.py,sha256=AWj1VzfU-DzUNP_9f_dpxuSSixtwyPn6N35n34b9fGo,1409
5663
+ policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_taxable_social_security.py,sha256=JanN2ySey1AMdlsCGN4-RILtvkIetsMaNSL7LRJ0sqI,2817
5662
5664
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_social_security.py,sha256=KlNVAoZaB1I1I2vdPti5-hmPOFeBQA7HFBAGTqwbgwo,1326
5663
5665
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/taxable_ss_magi.py,sha256=ZtnZ79E1uv3Fy-3Sfu77_qj5ipUMw9pG2iFHLQXfe6A,1982
5664
5666
  policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/unemployment_insurance/tax_exempt_unemployment_compensation.py,sha256=LcfEa0LR71l0fJJ2mDykKuHMxHIwbF_ir7XJ7cDAWGM,330
@@ -8393,8 +8395,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
8393
8395
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
8394
8396
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
8395
8397
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
8396
- policyengine_us-1.395.1.dist-info/METADATA,sha256=5VRMXt0iihrZL5_R-d195nuT4TWB4Hj8FTus5y8IRJo,1649
8397
- policyengine_us-1.395.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8398
- policyengine_us-1.395.1.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8399
- policyengine_us-1.395.1.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8400
- policyengine_us-1.395.1.dist-info/RECORD,,
8398
+ policyengine_us-1.396.0.dist-info/METADATA,sha256=u4VBx300rh8daeQ-pxqexy0LnAJkf4x7XHo1OI18Cv0,1649
8399
+ policyengine_us-1.396.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8400
+ policyengine_us-1.396.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
8401
+ policyengine_us-1.396.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
8402
+ policyengine_us-1.396.0.dist-info/RECORD,,