policyengine-us 1.395.1__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/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/test_ss_combined_income_fix.yaml +21 -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.1.dist-info → policyengine_us-1.395.2.dist-info}/METADATA +1 -1
- {policyengine_us-1.395.1.dist-info → policyengine_us-1.395.2.dist-info}/RECORD +10 -8
- {policyengine_us-1.395.1.dist-info → policyengine_us-1.395.2.dist-info}/WHEEL +0 -0
- {policyengine_us-1.395.1.dist-info → policyengine_us-1.395.2.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.395.1.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
|
+
|
|
@@ -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.
|
|
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
|
|
@@ -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=
|
|
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=
|
|
5661
|
-
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
|
|
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.
|
|
8397
|
-
policyengine_us-1.395.
|
|
8398
|
-
policyengine_us-1.395.
|
|
8399
|
-
policyengine_us-1.395.
|
|
8400
|
-
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
|