diff --git a/changelog.d/fix-ssi-interest-dividend-exclusion.fixed.md b/changelog.d/fix-ssi-interest-dividend-exclusion.fixed.md new file mode 100644 index 00000000000..bc88a8bdf25 --- /dev/null +++ b/changelog.d/fix-ssi-interest-dividend-exclusion.fixed.md @@ -0,0 +1 @@ +Excluded qualifying interest and dividend income from federal SSI and spousal deeming while preserving dependent state supplement income rules. diff --git a/policyengine_us/parameters/gov/ssa/ssi/income/sources/unearned.yaml b/policyengine_us/parameters/gov/ssa/ssi/income/sources/unearned.yaml index 9492706d3be..89669d5a28b 100644 --- a/policyengine_us/parameters/gov/ssa/ssi/income/sources/unearned.yaml +++ b/policyengine_us/parameters/gov/ssa/ssi/income/sources/unearned.yaml @@ -30,11 +30,42 @@ values: # (f) Prizes and awards. # (g) Gifts and inheritances. # (h) Support and maintenance in kind. + # The exclusion took effect July 1, 2004. Annual simulations select this + # source list beginning in 2005 because SSI unearned income is annual. + 2004-07-01: + # (a) Annuities, pensions, and other periodic payments. + - pension_income + - social_security + - railroad_benefits + - disability_benefits + - veterans_benefits + - survivor_benefits + - workers_compensation + - total_unemployment_compensation + - retirement_distributions + - military_retirement_income + - gi_cash_assistance + # (b) Alimony and support payments. + - alimony_income + - child_support_received + - financial_assistance + # (d) Rents. + - rental_income + # (e) Death benefits. + # (f) Prizes and awards. + # (g) Gifts and inheritances. + # (h) Support and maintenance in kind. metadata: label: SSI unearned income sources reference: - title: United States Code of Federal Regulations, Title 20, Subsection 416.1121 href: https://www.law.cornell.edu/cfr/text/20/416.1121 + - title: United States Code, Title 42, Section 1382a(b)(23) + href: https://www.govinfo.gov/content/pkg/USCODE-2023-title42/html/USCODE-2023-title42-chap7-subchapXVI-partA-sec1382a.htm + - title: United States Code of Federal Regulations, Title 20, Subsection 416.1124(c)(22) + href: https://www.ecfr.gov/current/title-20/section-416.1124 + - title: SSA POMS SI 00830.500 - Dividends and Interest + href: https://secure.ssa.gov/poms.nsf/lnx/0500830500 - title: 42 U.S.C. 1382a(a)(2)(B) href: https://www.law.cornell.edu/uscode/text/42/1382a#a_2_B - title: SSA POMS SI 00830.225 Railroad Retirement Payments diff --git a/policyengine_us/parameters/gov/states/ia/hhs/ssa/excluded_unearned_sources.yaml b/policyengine_us/parameters/gov/states/ia/hhs/ssa/excluded_unearned_sources.yaml index 67f1105a653..6142f992b90 100644 --- a/policyengine_us/parameters/gov/states/ia/hhs/ssa/excluded_unearned_sources.yaml +++ b/policyengine_us/parameters/gov/states/ia/hhs/ssa/excluded_unearned_sources.yaml @@ -8,9 +8,8 @@ metadata: unit: list period: year label: Iowa SSA excluded unearned income sources - # NOTE: 20 CFR 416.1124(c)(22) excludes interest and dividends from a - # countable resource, but federal SSI in the model still counts them (issue - # 10079). Remove this list once SSI excludes them, or they are excluded twice. + # Care budgets deduct these sources only when the federal SSI income + # total includes them. The family-life home other-income test excludes them. reference: - title: 20 CFR 416.1124(c)(22) href: https://www.ecfr.gov/current/title-20/section-416.1124#p-416.1124(c)(22) diff --git a/policyengine_us/tests/policy/baseline/gov/ssa/ssi/eligibility/income/deemed/from_ineligible_spouse/ssi_income_deemed_from_ineligible_spouse.yaml b/policyengine_us/tests/policy/baseline/gov/ssa/ssi/eligibility/income/deemed/from_ineligible_spouse/ssi_income_deemed_from_ineligible_spouse.yaml index e1968e9c591..8906272dcd6 100644 --- a/policyengine_us/tests/policy/baseline/gov/ssa/ssi/eligibility/income/deemed/from_ineligible_spouse/ssi_income_deemed_from_ineligible_spouse.yaml +++ b/policyengine_us/tests/policy/baseline/gov/ssa/ssi/eligibility/income/deemed/from_ineligible_spouse/ssi_income_deemed_from_ineligible_spouse.yaml @@ -121,6 +121,29 @@ output: ssi_income_deemed_from_ineligible_spouse: [0, 0] +- name: Interest from an ineligible spouse is excluded from deeming. + period: 2026 + input: + people: + eligible_spouse: + age: 65 + is_disabled: true + meets_ssi_disability_criteria: true + is_tax_unit_spouse: true + ineligible_spouse: + age: 60 + is_tax_unit_head: true + taxable_interest_income: 6_000 + tax_units: + tax_unit: + members: [eligible_spouse, ineligible_spouse] + marital_units: + marital_unit: + members: [eligible_spouse, ineligible_spouse] + output: + ssi_unearned_income: [0, 0] + ssi_income_deemed_from_ineligible_spouse: [0, 0] + - name: Disabled individual with high-income ineligible spouse (2025) period: 2025 input: diff --git a/policyengine_us/tests/policy/baseline/gov/ssa/ssi/income/ssi_unearned_income.yaml b/policyengine_us/tests/policy/baseline/gov/ssa/ssi/income/ssi_unearned_income.yaml index b5bbf2301bc..fa7ed2ac863 100644 --- a/policyengine_us/tests/policy/baseline/gov/ssa/ssi/income/ssi_unearned_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/ssa/ssi/income/ssi_unearned_income.yaml @@ -3,8 +3,36 @@ output: ssi_unearned_income: 0 -- name: Otherwise sums across sources. - period: 2022 +- name: Interest and dividends are excluded under current law. + period: 2026 + input: + social_security: 1 + taxable_interest_income: 2 + tax_exempt_interest_income: 3 + qualified_dividend_income: 4 + non_qualified_dividend_income: 5 + gi_cash_assistance: 6 + output: + ssi_unearned_income: 1 + 6 + +- name: Bank interest does not reduce an aged person's SSI. + period: 2026 + input: + people: + recipient: + age: 70 + taxable_interest_income: 2_400 + households: + household: + members: [recipient] + state_code: TX + output: + ssi_unearned_income: 0 + ssi_countable_income: 0 + ssi: 11_928 + +- name: The annual model still uses the pre-exclusion sources in 2004. + period: 2004 input: social_security: 1 interest_income: 2 @@ -13,6 +41,16 @@ output: ssi_unearned_income: 1 + 2 + 3 + 4 +- name: The annual model excludes interest and dividends starting in 2005. + period: 2005 + input: + social_security: 1 + interest_income: 2 + dividend_income: 3 + gi_cash_assistance: 4 + output: + ssi_unearned_income: 1 + 4 + - name: SSI unearned income ignores taxable Roth conversions. period: 2022 input: diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/ssa/oap/co_oap_deemed_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/ssa/oap/co_oap_deemed_income.yaml index 470e7e55d0d..6f05add61bc 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/ssa/oap/co_oap_deemed_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/ssa/oap/co_oap_deemed_income.yaml @@ -646,3 +646,73 @@ output: co_oap_deemed_income: [11_616, 0, 0] co_oap: [2_268, 0, 0] + +- name: Case 21, the child allocation still counts interest excluded from federal SSI. + # 3.534(B)(3) counts the child's own income, including $100/month of interest. + # The SSI interest and dividend exclusion does not apply to this child allocation. + # The allocation is 497 - 100 = 397: 2,000 - 1,032 - 397 = 571/month, or + # 6,852/year. + period: 2026 + input: + people: + head: + age: 62 + is_tax_unit_head: true + spouse: + age: 50 + pension_income: 24_000 + takes_up_medicaid_if_eligible: false + is_tax_unit_spouse: true + child: + age: 10 + taxable_interest_income: 1_200 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [head, spouse, child] + marital_units: + marital_unit: + members: [head, spouse] + child_marital_unit: + members: [child] + households: + household: + members: [head, spouse, child] + state_code: CO + output: + co_oap_deemed_income: [6_852, 0, 0] + +- name: Case 22, the child allocation still counts dividends excluded from federal SSI. + # 3.534(B)(3) counts the child's own income, including $100/month of dividends. + # The SSI interest and dividend exclusion does not apply to this child allocation. + # The allocation is 497 - 100 = 397: 2,000 - 1,032 - 397 = 571/month, or + # 6,852/year. + period: 2026 + input: + people: + head: + age: 62 + is_tax_unit_head: true + spouse: + age: 50 + pension_income: 24_000 + takes_up_medicaid_if_eligible: false + is_tax_unit_spouse: true + child: + age: 10 + qualified_dividend_income: 1_200 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [head, spouse, child] + marital_units: + marital_unit: + members: [head, spouse] + child_marital_unit: + members: [child] + households: + household: + members: [head, spouse, child] + state_code: CO + output: + co_oap_deemed_income: [6_852, 0, 0] diff --git a/policyengine_us/tests/policy/baseline/gov/states/ia/hhs/ssa/ia_ssa.yaml b/policyengine_us/tests/policy/baseline/gov/states/ia/hhs/ssa/ia_ssa.yaml index 87e06dc698d..c33f9ca2594 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ia/hhs/ssa/ia_ssa.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ia/hhs/ssa/ia_ssa.yaml @@ -3643,8 +3643,8 @@ 2026: 600 ia_ssa_category: RESIDENTIAL_CARE output: - # SSI: 1,100 + 50 - 20 = 1,130 > 994, so SSI is 0 (still 0 once SSI - # excludes dividends: 1,080 > 994). 20 CFR 416.1124(c)(22) and 8-E p.23 + # SSI excludes dividends: 1,100 - 20 = 1,080 > 994, so SSI is 0. + # 20 CFR 416.1124(c)(22) and 8-E p.23 # exclude the dividends from care income: 1,100. Participation # 1,100 - 130 = 970; 38.47 * 31 = 1,192.57 - 970 = 222.57. Counting the # dividends gives 172.57; excluding them twice gives 272.57. diff --git a/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/integration.yaml index aab4517bfd1..2b2eee1bf4a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/integration.yaml @@ -242,12 +242,18 @@ people: person1: age: 70 + # Explicit savings keep this premium-deduction example above the MSP + # asset limit; $2 million earning 5% produces the stated interest. + bank_account_assets: 2_000_000 taxable_interest_income: 100_000 is_tax_unit_head: true is_tax_unit_head_or_spouse: true ssn_card_type: CITIZEN person2: age: 70 + # Explicit savings keep this premium-deduction example above the MSP + # asset limit; $2 million earning 5% produces the stated interest. + bank_account_assets: 2_000_000 taxable_interest_income: 100_000 is_tax_unit_spouse: true is_tax_unit_head_or_spouse: true @@ -268,6 +274,7 @@ members: [person1, person2] state_fips: 16 output: + msp_part_b_premium_coverage: [0, 0] additional_senior_deduction: 6_000 id_additional_senior_deduction: 6_000 id_qualified_business_income_and_federal_schedule_1a_deductions: 6_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/subtractions/id_health_insurance_premiums_subtraction.yaml b/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/subtractions/id_health_insurance_premiums_subtraction.yaml index e2cd3149159..6b7e3d0d095 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/subtractions/id_health_insurance_premiums_subtraction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/id/tax/income/subtractions/id_health_insurance_premiums_subtraction.yaml @@ -79,6 +79,9 @@ people: head: age: 70 + # Explicit savings keep this premium-deduction example above the MSP + # asset limit; $2 million earning 5% produces the stated interest. + bank_account_assets: 2_000_000 taxable_interest_income: 100_000 medicare_enrolled: true is_tax_unit_head: true @@ -86,6 +89,9 @@ ssn_card_type: CITIZEN spouse: age: 70 + # Explicit savings keep this premium-deduction example above the MSP + # asset limit; $2 million earning 5% produces the stated interest. + bank_account_assets: 2_000_000 taxable_interest_income: 100_000 medicare_enrolled: true is_tax_unit_spouse: true @@ -102,6 +108,7 @@ members: [head, spouse] state_code: ID output: + msp_part_b_premium_coverage: [0, 0] medicare_part_b_premium: [2_220, 2_220] medical_expense_health_insurance_premiums: [2_220, 2_220] medical_expense_deduction: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/oh/dbh/rss/oh_rss.yaml b/policyengine_us/tests/policy/baseline/gov/states/oh/dbh/rss/oh_rss.yaml index 1cd83c0deeb..e61e9241674 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/oh/dbh/rss/oh_rss.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/oh/dbh/rss/oh_rss.yaml @@ -238,14 +238,13 @@ qualified_dividend_income: 12 output: oh_rss_eligible: true - # PolicyEngine's federal SSI counts interest and dividends (#10079): - # 1,636 + 48 / 12 + 12 / 12 = 1,641. - ssi_unearned_income: 1_641 - # 1,641 - 20 = 1,621. - ssi_countable_income: 1_621 - # 994 - 1,621 < 0. + # Federal SSI and Ohio both exclude interest and dividends. + ssi_unearned_income: 1_636 + # 1,636 - 20 = 1,616. + ssi_countable_income: 1_616 + # 994 - 1,616 < 0. ssi: 0 - # 5160:1-3-03.2(D)(2)(v): 1,641 - 4 - 1 = 1,636; 1,636 - 20 = 1,616; SSI 0. + # 5160:1-3-03.2(D)(2)(v): exclude interest and dividends once; SSI is 0. oh_rss_countable_income: 1_616 # Resources 1,200 + 400 = 1,600 <= 2,000; 1,800 - 1,616 = 184. oh_rss: 184 diff --git a/policyengine_us/tests/policy/baseline/gov/states/sd/dss/ssp/sd_ssp_independent.yaml b/policyengine_us/tests/policy/baseline/gov/states/sd/dss/ssp/sd_ssp_independent.yaml new file mode 100644 index 00000000000..d3377d9d895 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/sd/dss/ssp/sd_ssp_independent.yaml @@ -0,0 +1,22 @@ +- name: Interest remains other income for the independent living supplement. + period: 2026-01 + input: + state_code: SD + age: 65 + taxable_interest_income: 60 + output: + # ARSD 67:12:14:03(2): other income in addition to SSI disqualifies. + # The $5 monthly interest does not reduce federal SSI. + ssi: 994 + sd_ssp_independent: 0 + +- name: Dividends remain other income for the independent living supplement. + period: 2026-01 + input: + state_code: SD + age: 65 + qualified_dividend_income: 60 + output: + # The $5 monthly dividend is still positive income apart from SSI. + ssi: 994 + sd_ssp_independent: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/va/dars/ag/va_ag.yaml b/policyengine_us/tests/policy/baseline/gov/states/va/dars/ag/va_ag.yaml index 0f21c77ff63..f680562e38e 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/va/dars/ag/va_ag.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/va/dars/ag/va_ag.yaml @@ -245,7 +245,7 @@ ssi_countable_resources: 2_000 interest_income: 60 output: - # SSI counts the 5 monthly interest: 2,000 + 5 - 20 = 1,985 > 994, so SSI is 0. + # SSI excludes the $5 monthly interest: 2,000 - 20 = 1,980 > 994, so SSI is 0. # The AG budget excludes it: 2,000 - 20 = 1,980 (resources 2,000 at the limit). # 2,217 - 1,980 = 237; counting the interest would give 232. va_ag: 237 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wy/health/ssp/wy_ssp.yaml b/policyengine_us/tests/policy/baseline/gov/states/wy/health/ssp/wy_ssp.yaml index 022a2b11f46..f59e240a256 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wy/health/ssp/wy_ssp.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wy/health/ssp/wy_ssp.yaml @@ -18,8 +18,8 @@ bank_account_assets: 1_500 taxable_interest_income: 5.55 output: - # $5.55 / 12 = $0.4625 interest a month, all absorbed by the $20 general - # exclusion: countable income $0, so $994 - $0 = $994. + # Federal SSI excludes the $5.55 annual interest under 416.1124(c)(22): + # countable income is $0, so $994 - $0 = $994. ssi: 994 # $0.4625 > $0 is other income in the month, so the sole income rule fails. wy_ssp: 0 diff --git a/policyengine_us/variables/gov/states/co/ssa/oap/co_oap.py b/policyengine_us/variables/gov/states/co/ssa/oap/co_oap.py index a97efb8add0..7200ea67577 100644 --- a/policyengine_us/variables/gov/states/co/ssa/oap/co_oap.py +++ b/policyengine_us/variables/gov/states/co/ssa/oap/co_oap.py @@ -22,8 +22,6 @@ def formula(person, period, parameters): p = parameters(month).gov.states.co.ssa.oap # 9 CCR 2503-5 3.532(B), 3.533(B): the grant is the grant standard # less total countable income, SSI included (3.533(A)(2)(d)). - # PE-US's SSI counts interest that 20 CFR 416.1124(c)(22) - # excludes (#10079); OAP, which adds SSI back, offsets it. ssi = ssi_paid(person("ssi", month)) income = ssi + person("co_oap_countable_income", month) grant = p.grant_standard - income diff --git a/policyengine_us/variables/gov/states/co/ssa/oap/co_oap_deemed_income.py b/policyengine_us/variables/gov/states/co/ssa/oap/co_oap_deemed_income.py index a1c81d3db4d..56c3656fbb7 100644 --- a/policyengine_us/variables/gov/states/co/ssa/oap/co_oap_deemed_income.py +++ b/policyengine_us/variables/gov/states/co/ssa/oap/co_oap_deemed_income.py @@ -61,10 +61,15 @@ def formula(person, period, parameters): person("age", year) < age_limit ) ssi_sources = parameters(period).gov.ssa.ssi.income.sources - child_sources = [ - cents(max_(0, person(source, period))) - for source in ["ssi_earned_income", *ssi_sources.unearned] - ] + sources = dict.fromkeys( + [ + "ssi_earned_income", + *ssi_sources.unearned, + "interest_income", + "dividend_income", + ] + ) + child_sources = [cents(max_(0, person(source, period))) for source in sources] child_income = sum(child_sources) + ssi fbr = parameters(period).gov.ssa.ssi.amount.individual child_allocation = dependent_child * max_( diff --git a/policyengine_us/variables/gov/states/ia/hhs/ssa/ia_ssa_care_countable_income.py b/policyengine_us/variables/gov/states/ia/hhs/ssa/ia_ssa_care_countable_income.py index 087810af14f..46e2d608344 100644 --- a/policyengine_us/variables/gov/states/ia/hhs/ssa/ia_ssa_care_countable_income.py +++ b/policyengine_us/variables/gov/states/ia/hhs/ssa/ia_ssa_care_countable_income.py @@ -47,24 +47,22 @@ def formula(person, period, parameters): - person("ssi_blind_or_disabled_working_student_exclusion", period), 0, ) - # NOTE: 20 CFR 416.1124(c)(22) excludes "Interest and dividend income - # from a countable resource", as Manual 8-E Dividends and Interest - # Income do. Federal SSI still counts them (issue 10079), so the - # sources in excluded_unearned_sources are dropped here and from the - # family-life home $20 test in ia_ssa (ia_ssa.yaml Case 74 for - # residential care income and Case 63 for the $20 test). - # Remove the list once issue 10079 is fixed, or they are excluded - # twice. SMME income (ia_ssa_smme_countable_income) and the SSA-paid - # amounts (ia_ssa_federal) use SSI countable income, so they count - # interest and dividends until then. The 8-E exceptions for excluded - # resources are not modeled. + # 20 CFR 416.1124(c)(22) and Manual 8-E exclude interest and dividends + # from countable resources. Deduct only sources still included in + # the annual SSI total, so the same income is not excluded twice. + # The 8-E exceptions for excluded resources are not modeled. + ssi_sources = parameters(period.this_year).gov.ssa.ssi.income.sources.unearned + excluded = [ + source for source in p.excluded_unearned_sources if source in ssi_sources + ] + excluded_income = sum(person(source, period) for source in excluded) # NOTE: 6-B excludes one-third of child support a child receives from # an absent parent. Federal SSI does not apply 20 CFR 416.1124(c)(11) # yet (issue 10242), so the shared federal share is read here; remove # it once issue 10242 is fixed. unearned = max_( person("ssi_unearned_income", period) - - add(person, period, p.excluded_unearned_sources) + - excluded_income - ~adult * person("child_support_received", period) * ssi.income.exclusions.child_support_share, diff --git a/policyengine_us/variables/gov/states/oh/dbh/rss/oh_rss_countable_income.py b/policyengine_us/variables/gov/states/oh/dbh/rss/oh_rss_countable_income.py index 8988542e5be..7ed1386aab6 100644 --- a/policyengine_us/variables/gov/states/oh/dbh/rss/oh_rss_countable_income.py +++ b/policyengine_us/variables/gov/states/oh/dbh/rss/oh_rss_countable_income.py @@ -25,18 +25,18 @@ def formula(person, period, parameters): - person("ssi_blind_or_disabled_working_student_exclusion", period), 0, ) - # Interest and dividends are excluded under 5160:1-3-03.2(D)(2)(v). - unearned = max_( - person("ssi_unearned_income", period) - - person("interest_income", period) - - person("dividend_income", period), - 0, - ) + # Exclude interest and dividends once under 5160:1-3-03.2(D)(2)(v). + # Match the annual source list used by ssi_unearned_income. + ssi_sources = parameters(period.this_year).gov.ssa.ssi.income.sources.unearned + excluded = [ + source + for source in ("interest_income", "dividend_income") + if source in ssi_sources + ] + excluded_income = sum(person(source, period) for source in excluded) + unearned = max_(person("ssi_unearned_income", period) - excluded_income, 0) earned = where(couple, person.marital_unit.sum(earned), earned) unearned = where(couple, person.marital_unit.sum(unearned), unearned) - # NOTE: PolicyEngine's federal SSI still counts interest and dividends - # (#10079), so for an SSI recipient with that income the SSI counted - # here is understated and RSS is overstated by the same amount. # NOTE: SSI's joint-claim test reads only aged, blind or disabled # status, so a spouse who declines SSI is still budgeted jointly # (#10138). diff --git a/policyengine_us/variables/gov/states/sd/dss/ssp/sd_ssp_independent.py b/policyengine_us/variables/gov/states/sd/dss/ssp/sd_ssp_independent.py index 804b695e93b..3bfdaee4909 100644 --- a/policyengine_us/variables/gov/states/sd/dss/ssp/sd_ssp_independent.py +++ b/policyengine_us/variables/gov/states/sd/dss/ssp/sd_ssp_independent.py @@ -13,10 +13,11 @@ class sd_ssp_independent(Variable): def formula(person, period, parameters): p = parameters(period).gov.states.sd.dss.ssp source = parameters(period).gov.ssa.ssi.income.sources - floored_sources = [ - max_(person(name, period), 0) - for name in list(source.earned) + list(source.unearned) - ] + # Keep the other-income test independent of the federal SSI exclusions. + sources = dict.fromkeys( + [*source.earned, *source.unearned, "interest_income", "dividend_income"] + ) + floored_sources = [max_(person(name, period), 0) for name in sources] own_income = sum(floored_sources) receives_ssi = (person("ssi", period) > 0) | person("receives_ssi", period) arrangement = person("ssi_federal_living_arrangement", period) diff --git a/policyengine_us/variables/gov/states/va/dars/ag/va_ag_countable_income.py b/policyengine_us/variables/gov/states/va/dars/ag/va_ag_countable_income.py index 314011cd7d3..db94df09c60 100644 --- a/policyengine_us/variables/gov/states/va/dars/ag/va_ag_countable_income.py +++ b/policyengine_us/variables/gov/states/va/dars/ag/va_ag_countable_income.py @@ -31,11 +31,13 @@ def formula(person, period, parameters): - person("ssi_blind_or_disabled_working_student_exclusion", period), 0, ) - unearned = max_( - person("ssi_unearned_income", period) - - add(person, period, p.excluded_unearned_sources), - 0, - ) + # Remove only sources still included in the annual SSI income total. + ssi_sources = parameters(period.this_year).gov.ssa.ssi.income.sources.unearned + excluded = [ + source for source in p.excluded_unearned_sources if source in ssi_sources + ] + excluded_income = sum(person(source, period) for source in excluded) + unearned = max_(person("ssi_unearned_income", period) - excluded_income, 0) earned = where(joint, person.marital_unit.sum(earned), earned) unearned = where(joint, person.marital_unit.sum(unearned), unearned) non_ssi_countable = ( diff --git a/policyengine_us/variables/gov/states/wy/health/ssp/wy_ssp_eligible.py b/policyengine_us/variables/gov/states/wy/health/ssp/wy_ssp_eligible.py index ab782c831d6..e9108e829e9 100644 --- a/policyengine_us/variables/gov/states/wy/health/ssp/wy_ssp_eligible.py +++ b/policyengine_us/variables/gov/states/wy/health/ssp/wy_ssp_eligible.py @@ -25,7 +25,13 @@ def formula(person, period, parameters): # couple, are not treated as the person's other income. The statute does # not define "income", and EOM M1804 lists child cases in a parent's # household (living arrangement C) among its pay-rate codes. - sources = list(p.earned) + list(p.unearned) + # The sole-income test includes interest and dividends even when + # federal SSI excludes them. + sources = list( + dict.fromkeys( + [*p.earned, *p.unearned, "interest_income", "dividend_income"] + ) + ) has_other_income = np.zeros_like(receives_ssi) for source in sources: has_other_income = has_other_income | (person(source, period) > 0)