policyengine-us 1.395.0__py3-none-any.whl → 1.395.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/social_security/taxability/combined_income_ss_fraction.yaml +14 -0
- policyengine_us/parameters/gov/states/sc/tax/income/additions/additions.yaml +1 -0
- policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml +21 -0
- policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/two_wage_earner/integration.yaml +0 -1
- policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/integration.yaml +27 -0
- 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 +4 -5
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_ss_combined_income_excess.py +3 -4
- policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_taxable_social_security.py +3 -4
- {policyengine_us-1.395.0.dist-info → policyengine_us-1.395.2.dist-info}/METADATA +1 -1
- {policyengine_us-1.395.0.dist-info → policyengine_us-1.395.2.dist-info}/RECORD +13 -10
- {policyengine_us-1.395.0.dist-info → policyengine_us-1.395.2.dist-info}/WHEEL +0 -0
- {policyengine_us-1.395.0.dist-info → policyengine_us-1.395.2.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.395.0.dist-info → policyengine_us-1.395.2.dist-info}/licenses/LICENSE +0 -0
policyengine_us/parameters/gov/irs/social_security/taxability/combined_income_ss_fraction.yaml
ADDED
|
@@ -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
|
+
|
|
@@ -6,6 +6,7 @@ values:
|
|
|
6
6
|
# - Expenses related to National Guard and Military Reserve Income
|
|
7
7
|
# - Interest income on obligations of states and political subdivisions other than South Carolina
|
|
8
8
|
# - Other additions to income
|
|
9
|
+
- qualified_business_income_deduction
|
|
9
10
|
|
|
10
11
|
metadata:
|
|
11
12
|
unit: list
|
|
@@ -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
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
- name: taxsim_record_1_2024.yaml
|
|
2
|
+
absolute_error_margin: 2
|
|
3
|
+
period: 2024
|
|
4
|
+
input:
|
|
5
|
+
people:
|
|
6
|
+
person1:
|
|
7
|
+
age: 40
|
|
8
|
+
employment_income: 50000.0
|
|
9
|
+
self_employment_income: 110000
|
|
10
|
+
is_tax_unit_head: true
|
|
11
|
+
tax_units:
|
|
12
|
+
tax_unit:
|
|
13
|
+
members: [person1]
|
|
14
|
+
premium_tax_credit: 0
|
|
15
|
+
local_income_tax: 0
|
|
16
|
+
state_sales_tax: 0
|
|
17
|
+
spm_units:
|
|
18
|
+
spm_unit:
|
|
19
|
+
members: [person1]
|
|
20
|
+
snap: 0
|
|
21
|
+
tanf: 0
|
|
22
|
+
households:
|
|
23
|
+
household:
|
|
24
|
+
members: [person1]
|
|
25
|
+
state_fips: 45
|
|
26
|
+
output:
|
|
27
|
+
sc_income_tax: 7_875
|
|
@@ -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.
|
|
22
|
-
#
|
|
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.
|
|
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.
|
|
20
|
-
#
|
|
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.
|
|
20
|
-
#
|
|
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
|
|
@@ -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
|
|
@@ -2763,7 +2764,7 @@ policyengine_us/parameters/gov/states/ri/tax/income/exemption/reduction/rate.yam
|
|
|
2763
2764
|
policyengine_us/parameters/gov/states/ri/tax/income/exemption/reduction/start.yaml,sha256=7CfsGwTKRfvUHcU8HSlyimYDXLFGpdBSZerOG2v5qW4,1744
|
|
2764
2765
|
policyengine_us/parameters/gov/states/sc/README.md,sha256=mfcM_HP6TgyFUXCJ850Im_7HvXznT4XkvMh8Jy71TNk,17
|
|
2765
2766
|
policyengine_us/parameters/gov/states/sc/tax/income/rates.yaml,sha256=YZOSAUjZMXczR2hj37Wx3RIDHAMT9xJ-6UrKPN-iz6s,2116
|
|
2766
|
-
policyengine_us/parameters/gov/states/sc/tax/income/additions/additions.yaml,sha256=
|
|
2767
|
+
policyengine_us/parameters/gov/states/sc/tax/income/additions/additions.yaml,sha256=Wo83fVIlnB78ft_gmwUn42rjGNR0i81vwh4dHiz8QPc,1245
|
|
2767
2768
|
policyengine_us/parameters/gov/states/sc/tax/income/credits/non_refundable.yaml,sha256=wVDH6hbMbzTVi-l_hiGSxZLiPGoFI6MMVDdc3cI8kWc,811
|
|
2768
2769
|
policyengine_us/parameters/gov/states/sc/tax/income/credits/refundable.yaml,sha256=wubOdB9mRZqdDSB5s-TomGHSnjDWRpcUqhSMGlqq0-s,774
|
|
2769
2770
|
policyengine_us/parameters/gov/states/sc/tax/income/credits/cdcc/README.md,sha256=VAZGt1sAu_LCgaRpLFoUMOUaIBkjA5GGPgZ-9TEq0gs,34
|
|
@@ -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
|
|
@@ -4859,6 +4861,7 @@ policyengine_us/tests/policy/baseline/gov/states/ri/tax/income/credits/rebates/r
|
|
|
4859
4861
|
policyengine_us/tests/policy/baseline/gov/states/ri/tax/income/deductions/standard/ri_standard_deduction.yaml,sha256=nvTA0THrRYC3ovYlNfZk9rXIn7Nt9C6Bg9F1f04XUPg,2191
|
|
4860
4862
|
policyengine_us/tests/policy/baseline/gov/states/ri/tax/income/deductions/standard/ri_standard_deduction_applicable_percentage.yaml,sha256=pi4h4Wf14zP3AOV3rsu1dNmr3AuWKFi1XVVJsJC-s2M,1103
|
|
4861
4863
|
policyengine_us/tests/policy/baseline/gov/states/ri/tax/income/exemption/ri_exemptions.yaml,sha256=5N9R0X6anQ_hkLcGab967-RaM2p8TPlyBnoGqWLknHQ,1079
|
|
4864
|
+
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/integration.yaml,sha256=X05bpoGYgJGXKxQJORIQdqzrinDbxEHFKXnoTyyqE2Y,584
|
|
4862
4865
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/sc_income_tax_before_non_refundable_credits.yaml,sha256=LcMbiy8lielGey85bZusPA-vbAgIWuftT2bqS3GZsj0,1527
|
|
4863
4866
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/sc_income_tax_before_refundable_credits.yaml,sha256=B0jfa2ptgOsMKpAUNygrXwnw1RvVATUgq5VuZTOIcOo,425
|
|
4864
4867
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/sc_state_tax_addback.yaml,sha256=4l5DhzCuS6AsTaRL6M0cHfdJqUhgqZA_Udyb_uoeNrg,2560
|
|
@@ -4866,7 +4869,7 @@ policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/sc_taxable_income
|
|
|
4866
4869
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/sc_withheld_income_tax.yaml,sha256=z9JkBjNw4_6FOWWOjdIPb7GCvItBbvoRUdvC2GZ7iSY,714
|
|
4867
4870
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/sc_cdcc.yaml,sha256=awY6IA0rJ0RzH6ts3sX6a6ZM8rN4hG5MWso7cq60cVE,2278
|
|
4868
4871
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/eitc/sc_eitc.yaml,sha256=l2jgX0w33XbkDeoYm0LkPchmA2khxCtPlklX5oA3rvY,740
|
|
4869
|
-
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/two_wage_earner/integration.yaml,sha256=
|
|
4872
|
+
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/two_wage_earner/integration.yaml,sha256=PqA-DPG_EJZWmSJ7zJr20bEQaPkVPnmiIojpK7pUTCk,1831
|
|
4870
4873
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/two_wage_earner/sc_gross_earned_income.yaml,sha256=K_cXCXQuMjZ1PdfAzlf7sY87WKwsP1FkZpFU6Fbc5XI,520
|
|
4871
4874
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/credits/two_wage_earner/sc_two_wage_earner_credit.yaml,sha256=g7lkG0UaxsskN--4vf2Yvl9ReYzYggtKaOyRfdsnC_0,2482
|
|
4872
4875
|
policyengine_us/tests/policy/baseline/gov/states/sc/tax/income/deductions/sc_young_child_deduction.yaml,sha256=LMmCUKWj6_Uf2BU9VsiFoI0OE3kzh0MMavfB9xX8eOY,803
|
|
@@ -5654,10 +5657,10 @@ policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/ir
|
|
|
5654
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
|
|
5655
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
|
|
5656
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
|
|
5657
|
-
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=
|
|
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
|
|
5658
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
|
|
5659
|
-
policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_ss_combined_income_excess.py,sha256=
|
|
5660
|
-
policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/social_security/tax_unit_taxable_social_security.py,sha256=
|
|
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
|
|
5661
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
|
|
5662
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
|
|
5663
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
|
|
@@ -8392,8 +8395,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8392
8395
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8393
8396
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8394
8397
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8395
|
-
policyengine_us-1.395.
|
|
8396
|
-
policyengine_us-1.395.
|
|
8397
|
-
policyengine_us-1.395.
|
|
8398
|
-
policyengine_us-1.395.
|
|
8399
|
-
policyengine_us-1.395.
|
|
8398
|
+
policyengine_us-1.395.2.dist-info/METADATA,sha256=d_8af2ppwtc3GLG1R_3zm_nqMs8ICV7EPe5YxXCTn9k,1649
|
|
8399
|
+
policyengine_us-1.395.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8400
|
+
policyengine_us-1.395.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8401
|
+
policyengine_us-1.395.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8402
|
+
policyengine_us-1.395.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|