From 8a04efdedb325f689aec582d0dacf3d51476da28 Mon Sep 17 00:00:00 2001 From: Ziming Date: Mon, 2 Nov 2026 17:01:33 -0500 Subject: [PATCH 1/5] Count the income of an aged, blind or disabled spouse not on Medicare in MSP Co-Authored-By: Claude Opus 5.5 --- changelog.d/msp-abd-spouse-income.fixed.md | 1 + .../income/msp_countable_income.yaml | 83 +++++++++++++++++++ .../income/msp_countable_income.py | 25 ++++-- 3 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 changelog.d/msp-abd-spouse-income.fixed.md diff --git a/changelog.d/msp-abd-spouse-income.fixed.md b/changelog.d/msp-abd-spouse-income.fixed.md new file mode 100644 index 00000000000..e01881c839c --- /dev/null +++ b/changelog.d/msp-abd-spouse-income.fixed.md @@ -0,0 +1 @@ +Count the income of an aged, blind or disabled spouse who is not on Medicare in Medicare Savings Program countable income. diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml index fb81c53bf64..bfa58cbc37d 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml @@ -456,3 +456,86 @@ # (1,000 - 20) + (1,666.67 - 65) / 2 = 980 + 800.83 = 1,780.83. is_ssi_spousal_deeming_applies: [true, false] msp_countable_income: [1_780.83, 790.83] + +- name: Case 21, income of a disabled spouse who is not on Medicare counts for the couple. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + output: + # (1,000 + 1,500) - 20 = 2,480, above 135% of the two-person guideline: + # 1.35 x 1,803.33 = 2,434.50. + is_medicare_eligible: [true, false] + ssi_couple_computation_applies: [true, true] + msp_countable_income: [2_480, 2_480] + msp_category: [NONE, NONE] + +- name: Case 22, Illinois gives one exemption when only one spouse is on Medicare. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: IL + output: + # (1,000 + 1,500) - 25 = 2,475. + msp_countable_income: [2_475, 2_475] + +- name: Case 23, a disabled spouse living apart in a facility is not counted. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_lives_in_medical_treatment_facility: true + ssi_medicaid_pays_majority_of_care: true + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + output: + # 20 CFR 416.414(b)(3) computes the spouses separately: 1,000 - 20 = 980. + ssi_couple_computation_applies: [false, false] + msp_countable_income: [980, 1_480] diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py index 99b10f12989..a8fb624a502 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py @@ -12,6 +12,7 @@ class msp_countable_income(Variable): definition_period = MONTH reference = ( "https://www.law.cornell.edu/uscode/text/42/1396d#p", + "https://www.law.cornell.edu/cfr/text/20/416.412", "https://www.law.cornell.edu/cfr/text/20/416.1163", "https://secure.ssa.gov/apps10/poms.nsf/lnx/0501715010", "https://www.medicare.gov/basics/costs/help/medicare-savings-programs", @@ -27,11 +28,13 @@ class msp_countable_income(Variable): 2. $65 earned income exclusion 3. 50% of remaining earned income excluded - For married couples where both spouses are Medicare-eligible, SSI couple - rules apply per 20 CFR 416.1160: both spouses' incomes are combined before - exclusions are applied, and the $20 exclusion is taken once on the combined - income. The combined countable income is then compared against the couple FPL - in the eligibility variables (is_qmb_eligible, is_slmb_eligible, is_qi_eligible). + For married couples where both spouses are Medicare-eligible, or where SSI + computes both as a couple because both are aged, blind or disabled, SSI couple + rules apply per 20 CFR 416.412 and 416.1160: both spouses' incomes are combined + before exclusions are applied, and the $20 exclusion is taken once on the + combined income. The combined countable income is then compared against the + couple FPL in the eligibility variables (is_qmb_eligible, is_slmb_eligible, + is_qi_eligible). Under 42 U.S.C. 1396a(r)(2) a state may exclude more than the $20 SSI general income exclusion; Illinois and Mississippi use their larger @@ -91,7 +94,9 @@ def formula(person, period, parameters): per_spouse, max_( ssi_general, - person.marital_unit.sum(min_(state_exclusion, qualifying_income)), + person.marital_unit.sum( + min_(state_exclusion, qualifying_income) * is_medicare_eligible + ), ), general_exclusion, ) @@ -134,7 +139,13 @@ def formula(person, period, parameters): deeming_applies, deemed_countable, personal_countable_income ) + # A spouse who is aged, blind or disabled but not on Medicare is neither + # an applying spouse nor an ineligible spouse whose income is deemed, so + # the SSI couple computation is what brings in their income. + couple_computation = person("ssi_couple_computation_applies", period) annual_countable = where( - both_medicare_eligible, couple_countable, single_countable + both_medicare_eligible | couple_computation, + couple_countable, + single_countable, ) return annual_countable / MONTHS_IN_YEAR From 862c092c92ace657c798947377b328315b95ff3c Mon Sep 17 00:00:00 2001 From: Ziming Date: Mon, 2 Nov 2026 22:18:32 -0500 Subject: [PATCH 2/5] Follow SSI's ineligible spouse rule for MSP couples A spouse who is aged, blind or disabled but not eligible for SSI is an ineligible spouse (20 CFR 416.1801(c), 416.1160(d)), so child allocations and the rate difference in 416.1163 decide whether their income counts. A person tested alone now gets the one-person guideline, month by month. Illinois gives one $25 when only one spouse is on Medicare (PM 15-04-03-a). Co-Authored-By: Claude Opus 5.5 --- changelog.d/msp-abd-spouse-income.fixed.md | 2 +- .../income/msp_countable_income.yaml | 334 +++++++++++++++++- .../savings_programs/income/msp_fpg.yaml | 84 ++++- .../savings_programs/integration.yaml | 7 +- .../income/_msp_spouse_income.py | 42 +++ .../income/msp_countable_income.py | 81 +++-- .../savings_programs/income/msp_fpg.py | 13 +- .../income/msp_tests_as_couple.py | 48 +++ source_conflicts/candidates.yaml | 83 +++++ 9 files changed, 648 insertions(+), 46 deletions(-) create mode 100644 policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py create mode 100644 policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py diff --git a/changelog.d/msp-abd-spouse-income.fixed.md b/changelog.d/msp-abd-spouse-income.fixed.md index e01881c839c..f51776f4faa 100644 --- a/changelog.d/msp-abd-spouse-income.fixed.md +++ b/changelog.d/msp-abd-spouse-income.fixed.md @@ -1 +1 @@ -Count the income of an aged, blind or disabled spouse who is not on Medicare in Medicare Savings Program countable income. +Apply SSI's eligible-couple and spouse deeming rules to Medicare Savings Program countable income and the poverty guideline when only one spouse is on Medicare, including a spouse who is aged, blind or disabled. diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml index bfa58cbc37d..8b63696d1bd 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml @@ -339,8 +339,9 @@ output: # PM 15-04-03-a: one applicant, so one $25. Deemed: unearned 600 - 25 = 575; # earned (2,500 - 65) / 2 = 1,217.50; 575 + 1,217.50 = 1,792.50. - # The spouse without Medicare: (2,500 - 25 - 65) / 2 = 1,205. - msp_countable_income: [1_792.5, 1_205] + # The spouse without Medicare has person1's $600 deemed the same way, since + # 600 is above the 497 rate difference. + msp_countable_income: [1_792.5, 1_792.5] - name: Case 16, Illinois caps a spouse's 25 dollar exemption at that spouse's income. period: 2026-01 @@ -454,8 +455,9 @@ # SSI methodology deems the spouse's wages whether or not the person # meets SSI's noncitizen test: 20,000 > (1,450 - 967) x 12 = 5,796. # (1,000 - 20) + (1,666.67 - 65) / 2 = 980 + 800.83 = 1,780.83. + # person2 has person1's income deemed the same way: 12,000 > 5,796. is_ssi_spousal_deeming_applies: [true, false] - msp_countable_income: [1_780.83, 790.83] + msp_countable_income: [1_780.83, 1_780.83] - name: Case 21, income of a disabled spouse who is not on Medicare counts for the couple. period: 2026-01 @@ -539,3 +541,329 @@ # 20 CFR 416.414(b)(3) computes the spouses separately: 1,000 - 20 = 980. ssi_couple_computation_applies: [false, false] msp_countable_income: [980, 1_480] + +- name: Case 24, allocations for ineligible children come off the spouse's income before deeming. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 18_000 + person3: + age: 12 + person4: + age: 10 + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + marital_units: + marital_unit: + members: [person1, person2] + child1_marital_unit: + members: [person3] + child2_marital_unit: + members: [person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: TX + output: + # 20 CFR 416.1163(b): two allocations of 1,491 - 994 = 497 total 994. + # person1: 1,500 - 994 = 506, above 497, so it is deemed (416.1163(d)(2)): + # 1,000 + 506 - 20 = 1,486, at or below the two-person 21,640 / 12 = 1,803.33. + # person2: 1,000 - 994 = 6, not above 497, so 1,500 - 20 = 1,480 alone. + msp_countable_income: [1_486, 1_480, 0, 0] + msp_fpg: [1_803.33, 1_330, 1_330, 1_330] + msp_category: [QMB, NONE, NONE, NONE] + +- name: Case 25, a disabled spouse's income at or below the rate difference is not deemed. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 20_400 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 5_400 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(1): person2's 450 is not above 497, so person1 is tested + # alone: 1,700 - 20 = 1,680 against the one-person 15,960 / 12 = 1,330. + # 120% is 1,596 and 135% is 1,795.50, so QI. + # person2 has person1's 1,700 deemed: 450 + 1,700 - 20 = 2,130. + msp_countable_income: [1_680, 2_130] + msp_fpg: [1_330, 1_803.33] + msp_category: [QI, NONE] + +- name: Case 26, an eligible SSI couple is tested together when one spouse is on Medicare. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 16_800 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1801(c): 1,400 - 20 = 1,380 is below the 1,491 couple rate, so each + # spouse is eligible for SSI: (1,491 - 1,380) / 2 = 55.50. + # 1,380 is at or below the two-person 1,803.33, so QMB. Tested on the one-person + # 1,330 instead, person1 would be SLMB. + uncapped_ssi: [55.50, 55.50] + msp_countable_income: [1_380, 1_380] + msp_fpg: [1_803.33, 1_803.33] + msp_category: [QMB, NONE] + +- name: Case 27, income at or below the rate difference is not deemed from a spouse who is not aged, blind or disabled. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 20_160 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 5_400 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(1): person2's 450 is not above 497, so person1 is tested + # alone: 1,680 - 20 = 1,660 against the one-person 1,330. + # 120% is 1,596 and 135% is 1,795.50, so QI. The two-person 1,803.33 would be QMB. + # person2 has person1's 1,680 deemed: 450 + 1,680 - 20 = 2,110. + msp_countable_income: [1_660, 2_110] + msp_fpg: [1_330, 1_803.33] + msp_category: [QI, NONE] + +- name: Case 28, an undocumented spouse's income counts whether or not that spouse can enroll in Medicare. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 70 + is_tax_unit_spouse: true + immigration_status: UNDOCUMENTED + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # With both on Medicare the incomes combine. With person2 off Medicare, each + # spouse's income is above 497 and is deemed (20 CFR 416.1163(d)(2)). Either way: + # 1,000 + 1,500 - 20 = 2,480, above 135% of the two-person guideline: + # 1.35 x 1,803.33 = 2,434.50. + msp_countable_income: [2_480, 2_480] + msp_fpg: [1_803.33, 1_803.33] + msp_category: [NONE, NONE] + +- name: Case 29, Illinois gives one 25 dollar exemption to a spouse on Medicare who has no income. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 21_900 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: IL + output: + # PM 15-04-03-a: person2's 1,825 is above 497 and is deemed: 1,825 - 25 = 1,800, + # at or below the two-person 1,803.33, so QMB. The SSI 20 would leave 1,805: SLMB. + # person2 is tested alone, since person1 has no income: 1,825 - 25 = 1,800. + msp_countable_income: [1_800, 1_800] + msp_fpg: [1_803.33, 1_330] + msp_category: [QMB, NONE] + +- name: Case 30, a minor's wages are not counted as a spouse's when marital units are omitted. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + social_security_retirement: 20_400 + person2: + age: 16 + employment_income_before_lsr: 10_000 + households: + household: + members: [person1, person2] + state_code: TX + output: + # Omitted marital units put both people in one default unit, but a parent and the + # child they claim are not spouses, so each is tested alone. + # person1: 1,700 - 20 = 1,680 against the one-person 1,330. + # 120% is 1,596 and 135% is 1,795.50, and that Social Security income is too high + # for Texas Medicaid as a parent, so QI. + # person2: (10,000 / 12 - 20 - 65) / 2 = 374.17. + msp_countable_income: [1_680, 374.17] + msp_fpg: [1_330, 1_330] + msp_category: [QI, NONE] + +- name: Case 31, a spouse's income exactly at the rate difference is not deemed. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 20_160 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 5_964 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(1): person2's 5,964 / 12 = 497 is not above 1,491 - 994 = 497, + # so person1 is tested alone: 1,680 - 20 = 1,660 against the one-person 1,330. + # 120% is 1,596 and 135% is 1,795.50, so QI. + # person2 has person1's 1,680 deemed: 497 + 1,680 - 20 = 2,157. + msp_countable_income: [1_660, 2_157] + msp_fpg: [1_330, 1_803.33] + msp_category: [QI, NONE] + +- name: Case 32, a spouse's income one dollar above the rate difference is deemed. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 20_160 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 5_976 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(2): person2's 5,976 / 12 = 498 is above 497, so it is deemed: + # 1,680 + 498 - 20 = 2,158 against the two-person 1,803.33. + # 120% is 2,164, so SLMB. + msp_countable_income: [2_158, 2_158] + msp_fpg: [1_803.33, 1_803.33] + msp_category: [SLMB, NONE] + +- name: Case 33, Illinois gives an eligible SSI couple one 25 dollar exemption when one spouse is on Medicare. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 1_200 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_unearned_income: 15_600 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: IL + output: + # 20 CFR 416.1801(c): 100 + 1,300 - 20 = 1,380 is below the 1,491 couple rate, so + # each spouse is eligible for SSI: (1,491 - 1,380) / 2 = 55.50. + # PM 15-04-03-a: only person1 applies, so one $25: 100 + 1,300 - 25 = 1,375. + # A $25 for each spouse would give 1,350. + uncapped_ssi: [55.50, 55.50] + msp_countable_income: [1_375, 1_375] + msp_fpg: [1_803.33, 1_803.33] + msp_category: [QMB, NONE] diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml index 14acc4c3fb0..0ffd2931b33 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml @@ -12,11 +12,89 @@ # Individual FPL = $15,060/year, monthly = $1,255 msp_fpg: 1_255 -- name: Case 2, married couple gets couple FPL. +- name: Case 2, married couple both on Medicare gets couple FPL. period: 2024-01 absolute_error_margin: 0.01 input: - spm_unit_is_married: true + people: + person1: + age: 68 + person2: + age: 66 + marital_units: + marital_unit: + members: [person1, person2] output: # Couple FPL = $20,440/year, monthly = $1,703.33 - msp_fpg: 1_703.33 + msp_fpg: [1_703.33, 1_703.33] + +- name: Case 3, spouses separated by a facility each keep the one-person guideline. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_lives_in_medical_treatment_facility: true + ssi_medicaid_pays_majority_of_care: true + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + output: + # 20 CFR 416.414(b)(3) computes the spouses separately, though each one's income + # is above the 497 rate difference. One-person guideline: 15,960 / 12 = 1,330. + msp_fpg: [1_330, 1_330] + +- name: Case 4, the guideline and income test change in the month a spouse enters a facility. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 12_000 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_lives_in_medical_treatment_facility: + 2026-07: true + ssi_medicaid_pays_majority_of_care: + 2026-07: true + ssi_unearned_income: 18_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # June, both at home: each spouse's income is above 497 and is deemed: + # 1,000 + 1,500 - 20 = 2,480, above 1.35 x 21,640 / 12 = 2,434.50. + # July, person2 in a facility (20 CFR 416.414(b)(3)): each is tested alone. + # person1: 1,000 - 20 = 980, at or below 15,960 / 12 = 1,330, so QMB. + # person2: 1,500 - 20 = 1,480, and not on Medicare. + msp_fpg: + 2026-06: [1_803.33, 1_803.33] + 2026-07: [1_330, 1_330] + msp_countable_income: + 2026-06: [2_480, 2_480] + 2026-07: [980, 1_480] + msp_category: + 2026-06: [NONE, NONE] + 2026-07: [QMB, NONE] diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/integration.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/integration.yaml index c177b3f7b3a..fc59c8d7f50 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/integration.yaml @@ -1,5 +1,6 @@ # MSP uses SSI income methodology per 42 U.S.C. 1396d(p)(1)(B) -# For married couples, MSP uses couple FPL = $20,440 for 2024 +# A married person tested as a couple (msp_tests_as_couple) uses the two-person +# FPL = $20,440 for 2024; a married person tested alone uses the one-person FPL. - name: MSP integration - married couple, both QMB eligible period: 2024-01 @@ -111,8 +112,8 @@ # Edge case: only one spouse is Medicare-eligible. # person.marital_unit.sum(is_medicare_eligible) == 1, not 2, so full couple # aggregation does not apply. With no spouse income to deem, spouse1 is - # tested on their own income ($10,000) against the married MSP threshold. - # ($10,000 - $240) / 12 = $813.33/month < $1,703.33 -> QMB. + # tested on their own income ($10,000) against the one-person guideline. + # ($10,000 - $240) / 12 = $813.33/month < $1,255 -> QMB. # Spouse2 is not Medicare-eligible and cannot qualify for MSP. input: people: diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py new file mode 100644 index 00000000000..d599a79bc19 --- /dev/null +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py @@ -0,0 +1,42 @@ +from policyengine_us.model_api import * + + +def msp_spouse_value(values: ArrayLike, spouse: ArrayLike) -> ArrayLike: + # Each person's spouse's value, or zero for a person with no spouse. The + # spouse is the row from _ssi_spouse_index, not the rest of the marital unit, + # because a situation that omits marital units puts everyone in one. + return values[np.maximum(spouse, 0)] * (spouse >= 0) + + +def msp_spouses_combine_income( + person: Population, period: Period, spouse: ArrayLike +) -> ArrayLike: + # Spouses who are both on Medicare are tested together. So is an eligible + # couple: each spouse must be eligible for SSI (20 CFR 416.1801(c); POMS SI + # 00501.154 A.1), not only aged, blind or disabled, and uncapped_ssi above + # zero adds the income test that is_ssi_eligible leaves out. + is_medicare_eligible = person("is_medicare_eligible", period.this_year) + both_on_medicare = is_medicare_eligible & msp_spouse_value( + is_medicare_eligible, spouse + ) + eligible_for_ssi = person("uncapped_ssi", period) > 0 + eligible_couple = ( + person("ssi_couple_computation_applies", period) + & eligible_for_ssi + & msp_spouse_value(eligible_for_ssi, spouse) + ) + return both_on_medicare | eligible_couple + + +def msp_spouse_income(person: Population, year: Period, spouse: ArrayLike) -> tuple: + # A spouse's annual earned and unearned income after allocations for + # ineligible children, which come off unearned income first (20 CFR + # 416.1163(a) and (b)). Any spouse who is not eligible for SSI is an + # ineligible spouse, whether or not aged, blind or disabled (20 CFR + # 416.1160(d)). + spouse_earned = msp_spouse_value(person("ssi_earned_income", year), spouse) + spouse_unearned = msp_spouse_value(person("ssi_unearned_income", year), spouse) + allocations = add(person.tax_unit, year, ["ssi_ineligible_child_allocation"]) + earned_left = max_(spouse_earned - max_(allocations - spouse_unearned, 0), 0) + unearned_left = max_(spouse_unearned - allocations, 0) + return earned_left, unearned_left diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py index a8fb624a502..196ced94d51 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py @@ -1,7 +1,15 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.medicare.savings_programs.income._msp_spouse_income import ( + msp_spouse_income, + msp_spouse_value, + msp_spouses_combine_income, +) from policyengine_us.variables.gov.ssa.ssi.eligibility.income._apply_ssi_exclusions import ( _apply_ssi_exclusions, ) +from policyengine_us.variables.gov.ssa.ssi.eligibility.resources.deemed._ssi_spouses import ( + _ssi_spouse_index, +) class msp_countable_income(Variable): @@ -13,7 +21,11 @@ class msp_countable_income(Variable): reference = ( "https://www.law.cornell.edu/uscode/text/42/1396d#p", "https://www.law.cornell.edu/cfr/text/20/416.412", + "https://www.law.cornell.edu/cfr/text/20/416.414", + "https://www.law.cornell.edu/cfr/text/20/416.1160", "https://www.law.cornell.edu/cfr/text/20/416.1163", + "https://www.law.cornell.edu/cfr/text/20/416.1801", + "https://secure.ssa.gov/poms.nsf/lnx/0500501154", "https://secure.ssa.gov/apps10/poms.nsf/lnx/0501715010", "https://www.medicare.gov/basics/costs/help/medicare-savings-programs", "https://www.law.cornell.edu/uscode/text/42/1396a#r_2", @@ -28,29 +40,40 @@ class msp_countable_income(Variable): 2. $65 earned income exclusion 3. 50% of remaining earned income excluded - For married couples where both spouses are Medicare-eligible, or where SSI - computes both as a couple because both are aged, blind or disabled, SSI couple - rules apply per 20 CFR 416.412 and 416.1160: both spouses' incomes are combined - before exclusions are applied, and the $20 exclusion is taken once on the - combined income. The combined countable income is then compared against the - couple FPL in the eligibility variables (is_qmb_eligible, is_slmb_eligible, - is_qi_eligible). + For married couples where both spouses are Medicare-eligible, or who are an + eligible couple because each is eligible for SSI (20 CFR 416.412 and + 416.1801(c)), both spouses' incomes are combined before exclusions are + applied, and the $20 exclusion is taken once on the combined income. + + Any other spouse is an ineligible spouse under 20 CFR 416.1160(d), even one + who is aged, blind or disabled. Under 20 CFR 416.1163, allocations for + ineligible children come off that spouse's income. A remainder above the + difference between the couple and individual benefit rates is added to the + person's own income before exclusions, and otherwise nothing is deemed. A + medical treatment facility that separates a couple leaves each with their own + income (20 CFR 416.414(b)(3)). The eligibility variables (is_qmb_eligible, + is_slmb_eligible, is_qi_eligible) compare the result with msp_fpg, which is the + couple FPL whenever msp_tests_as_couple is true. Under 42 U.S.C. 1396a(r)(2) a state may exclude more than the $20 SSI general income exclusion; Illinois and Mississippi use their larger exclusion in its place. Mississippi takes it once from a couple's combined income; Illinois gives each applying spouse with income their - own exclusion, up to that spouse's income. Illinois gives its $25 only on - income other than SSI and contributions (alimony, child support, outside - cash help); the $20 SSI exclusion stays the floor. + own exclusion, up to that spouse's income, and one exclusion when only one + spouse is on Medicare. Illinois gives its $25 only on income other than SSI + and contributions (alimony, child support, outside cash help); the $20 SSI + exclusion stays the floor. """ def formula(person, period, parameters): year = period.this_year earned_income = person("ssi_earned_income", year) unearned_income = person("ssi_unearned_income", year) + spouse = _ssi_spouse_index(person, year) is_medicare_eligible = person("is_medicare_eligible", year) - both_medicare_eligible = person.marital_unit.sum(is_medicare_eligible) == 2 + both_medicare_eligible = is_medicare_eligible & msp_spouse_value( + is_medicare_eligible, spouse + ) blind_or_disabled_working_student_exclusion = person( "ssi_blind_or_disabled_working_student_exclusion", year @@ -59,7 +82,6 @@ def formula(person, period, parameters): earned_income - blind_or_disabled_working_student_exclusion, 0, ) - deeming_applies = person("is_ssi_spousal_deeming_applies", year) state = person.household("state_code_str", period) p = parameters(period).gov.hhs.medicare.savings_programs.eligibility.income ssi_general = parameters(period).gov.ssa.ssi.income.exclusions.general @@ -89,23 +111,22 @@ def formula(person, period, parameters): max_(ssi_general, min_(state_exclusion, qualifying_income)), general_exclusion, ) + # Two spouses on Medicare each apply. When only one does, PM 15-04-03-a + # allows one $25 on income in the standard, even if that spouse has no + # income other than SSI or contributions. per_spouse = p.state_general_exclusion_per_spouse[state].astype(bool) + own_exemption = min_(state_exclusion, qualifying_income) couple_general_exclusion = where( - per_spouse, + per_spouse & both_medicare_eligible, max_( ssi_general, - person.marital_unit.sum( - min_(state_exclusion, qualifying_income) * is_medicare_eligible - ), + own_exemption + msp_spouse_value(own_exemption, spouse), ), general_exclusion, ) - spouse_earned_income = person( - "ssi_earned_income_deemed_from_ineligible_spouse", year - ) - spouse_unearned_income = person( - "ssi_unearned_income_deemed_from_ineligible_spouse", year + spouse_earned_income, spouse_unearned_income = msp_spouse_income( + person, year, spouse ) personal_countable_income = _apply_ssi_exclusions( personal_earned_income, @@ -117,11 +138,13 @@ def formula(person, period, parameters): couple_countable = _apply_ssi_exclusions( max_( - person.marital_unit.sum(earned_income) - - person.marital_unit.sum(blind_or_disabled_working_student_exclusion), + earned_income + + msp_spouse_value(earned_income, spouse) + - blind_or_disabled_working_student_exclusion + - msp_spouse_value(blind_or_disabled_working_student_exclusion, spouse), 0, ), - person.marital_unit.sum(unearned_income), + unearned_income + msp_spouse_value(unearned_income, spouse), parameters, year, general_exclusion=couple_general_exclusion, @@ -136,15 +159,13 @@ def formula(person, period, parameters): ) single_countable = where( - deeming_applies, deemed_countable, personal_countable_income + person("msp_tests_as_couple", period), + deemed_countable, + personal_countable_income, ) - # A spouse who is aged, blind or disabled but not on Medicare is neither - # an applying spouse nor an ineligible spouse whose income is deemed, so - # the SSI couple computation is what brings in their income. - couple_computation = person("ssi_couple_computation_applies", period) annual_countable = where( - both_medicare_eligible | couple_computation, + msp_spouses_combine_income(person, period, spouse), couple_countable, single_countable, ) diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py index b1cb24efc20..be47fb61f66 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py @@ -6,16 +6,18 @@ class msp_fpg(Variable): entity = Person unit = USD label = "MSP Federal Poverty Guideline" - definition_period = YEAR + definition_period = MONTH reference = ( "https://www.law.cornell.edu/uscode/text/42/1396d#p", + "https://www.law.cornell.edu/cfr/text/20/416.1163", "https://www.medicare.gov/basics/costs/help/medicare-savings-programs", ) documentation = """ - The Federal Poverty Guideline used for MSP eligibility is based on + The monthly Federal Poverty Guideline used for MSP eligibility is based on individual or couple status, not the full household/SPM unit size. Per 42 U.S.C. 1396d(p), MSP income limits are based on the federal - poverty line for a family of the size involved. + poverty line for a family of the size involved. The family is two people + when msp_tests_as_couple is true, and one otherwise. Note: Published Medicare.gov limits are $20/month higher than raw FPL because they include the $20 general income exclusion in the threshold. @@ -29,12 +31,11 @@ def formula(person, period, parameters): # Note: These are raw FPL values. Published limits are $20 higher # because we apply the $20 exclusion to income (msp_countable_income) # rather than adding it to the threshold. - married = person.spm_unit("spm_unit_is_married", period.this_year) + tests_as_couple = person("msp_tests_as_couple", period) state_group = person.household("state_group_str", period) p = parameters(period).gov.hhs.fpg p1 = p.first_person[state_group] pn = p.additional_person[state_group] - # 1 person if single, 2 persons if married individual_fpg = p1 couple_fpg = p1 + pn - return where(married, couple_fpg, individual_fpg) + return where(tests_as_couple, couple_fpg, individual_fpg) / MONTHS_IN_YEAR diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py new file mode 100644 index 00000000000..e5c72cec3a1 --- /dev/null +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py @@ -0,0 +1,48 @@ +from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.medicare.savings_programs.income._msp_spouse_income import ( + msp_spouse_income, + msp_spouses_combine_income, +) +from policyengine_us.variables.gov.ssa.ssi.eligibility.resources.deemed._ssi_spouses import ( + _ssi_spouse_index, +) + + +class msp_tests_as_couple(Variable): + value_type = bool + entity = Person + label = "Medicare Savings Program tests this person as a couple" + definition_period = MONTH + reference = ( + "https://www.law.cornell.edu/uscode/text/42/1396d#p", + "https://www.law.cornell.edu/cfr/text/20/416.414", + "https://www.law.cornell.edu/cfr/text/20/416.1160", + "https://www.law.cornell.edu/cfr/text/20/416.1163", + "https://www.law.cornell.edu/cfr/text/20/416.1801", + "https://secure.ssa.gov/poms.nsf/lnx/0500501154", + ) + documentation = """ + Whether SSI's spouse rules count a spouse's income for this person, which also + makes the two-person poverty guideline the income limit. That holds when both + spouses are on Medicare, when they are an eligible couple, or when the spouse's + income after allocations for ineligible children is more than the difference + between the couple and individual benefit rates (20 CFR 416.1163(d)(2)). If it + is not more, nothing is deemed (416.1163(d)(1)). A medical treatment facility + that separates a couple also leaves each spouse tested alone (416.414(b)(3)), + unless both are on Medicare, when the model still tests them together. A person + with no co-resident spouse (_ssi_spouse_index) is always tested alone. + """ + + def formula(person, period, parameters): + year = period.this_year + spouse = _ssi_spouse_index(person, year) + spouse_earned, spouse_unearned = msp_spouse_income(person, year, spouse) + p = parameters(period).gov.ssa.ssi.amount + rate_difference = (p.couple - p.individual) * MONTHS_IN_YEAR + spouse_income_is_deemed = spouse_earned + spouse_unearned > rate_difference + split_by_facility = person("ssi_claim_is_joint", year) & ~person( + "ssi_couple_computation_applies", period + ) + return msp_spouses_combine_income(person, period, spouse) | ( + spouse_income_is_deemed & ~split_by_facility + ) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 025bb5dd42b..b208b7cdc5b 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -2779,6 +2779,43 @@ candidates: state: ruled note: Ruled statute-first in October 2026; verify the incorporated dependency bar and annual questionnaire routing, including the 2026 draft. +- id: us-il:msp-exemption-applicant-without-income + program: medicare-savings-programs + years: + from: 2026 + type: calendar + question: Does an Illinois Medicare Savings Program applicant with no income of their own get the $25 exemption on + income counted from a spouse who is not applying? + sources: + - kind: manual + citation: IDHS Policy Manual PM 15-04-03-a + url: https://www.dhs.state.il.us/page.aspx?item=16387 + - kind: regulation + citation: 89 Ill. Adm. Code 120.335(a)(1) + url: https://www.ilga.gov/ftp/JCAR/AdminCode/089/089001200H03350R.html + - kind: manual + citation: IDHS Policy Manual PM 06-12-01-c + url: https://www.dhs.state.il.us/page.aspx?item=14179 + readings: + statute: 'No statute is supplied; 120.335(a)(1) exempts "the first $25.00 of a client''s earned or unearned income + other than SSI income, or contributions from a spouse or other individual", and PM 06-12-01-c allows "no more + than one income exemption for their own income" and an exemption on a spouse''s income only if the spouse "is + an applicant or client in another MANG case".' + other: 'PM 15-04-03-a: "If the person applying for or receiving AABD Medical has no income other than SSI or + contributions, and another person included in the standard has income, deduct one $25 exemption even if the + other person receives benefits under one of the Family Health Plans."' + example: An Illinois applicant, 68, with no income and a disabled spouse, 62, with $1,825 a month counts $1,800 and + is QMB with one $25, and counts $1,805 and is SLMB with only the SSI $20. + pe_us: + follows: conflicting-source + code: + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10633 + state: ruled + note: 'PE-US follows PM 15-04-03-a: one $25 applies when only one spouse is on Medicare, whether or not that spouse + has income of their own. Two spouses on Medicare keep one exemption each, capped at each spouse''s own income. Ruled + by the project lead, 2026-11-02: https://github.com/PolicyEngine/policyengine-us/pull/10633' - id: us-il:msp-income-exemption-contributions program: medicare-savings-programs years: @@ -10473,6 +10510,52 @@ candidates: three places, and floors the result at the federal deduction, a PE safeguard that binds only when the rounded share falls below the exact federal share. Settling the federal reading (rulespec-us#1413) and using it for both would make that floor unnecessary.' +- id: us:msp-eligible-spouse-ssi-definition + program: medicare-savings-programs + years: + from: 2026 + type: calendar + question: Under SSI methodology for the Medicare Savings Programs, is a spouse who is aged, blind or disabled but not + eligible for SSI an eligible spouse, whose income is combined, or an ineligible spouse, whose income is deemed? + sources: + - kind: statute + citation: 42 U.S.C. 1382c(b) and (f)(1) + url: https://www.law.cornell.edu/uscode/text/42/1382c + - kind: regulation + citation: 20 CFR 416.1801(c) + url: https://www.law.cornell.edu/cfr/text/20/416.1801 + - kind: regulation + citation: 20 CFR 416.1160(d) + url: https://www.law.cornell.edu/cfr/text/20/416.1160 + - kind: regulation + citation: 20 CFR 416.1163(b) and (d) + url: https://www.law.cornell.edu/cfr/text/20/416.1163 + - kind: manual + citation: POMS SI 00501.154 A.1 + url: https://secure.ssa.gov/poms.nsf/lnx/0500501154 + readings: + statute: 'Section 1382c(b) defines an eligible spouse as "an aged, blind, or disabled individual" married to and + living with another such individual, and (f)(1) deems income from a spouse who "is not an eligible spouse".' + other: '416.1801(c) defines an eligible spouse as a person "Who is eligible for SSI"; 416.1160(d) defines an + ineligible spouse as someone who "is not eligible for SSI benefits"; POMS SI 00501.154 A.1 applies couple + computation rules if "each is eligible for benefits". 416.1163 then allocates to ineligible children and deems + only a remainder above the rate difference.' + example: A, on Medicare, has $1,000 a month and B, 62 and disabled, has $1,500, with two ineligible children. Combined + income is $2,480 and no tier; under deeming it is $1,000 + ($1,500 - 2 x $497) - $20 = $1,486 and QMB. + pe_us: + follows: conflicting-source + code: + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_fpg.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10633 + state: ruled + note: 'PE-US follows the regulations for the Medicare Savings Programs: spouses are an eligible couple only if each + is eligible for SSI, and any other spouse is an ineligible spouse, with income deemed above the rate difference. + The SSI variables (is_ssi_ineligible_spouse, ssi_couple_computation_applies) still classify by aged, blind or + disabled status. Ruled by the project lead, 2026-11-02: https://github.com/PolicyEngine/policyengine-us/pull/10633' - id: us:niit-excess-business-loss-addback program: income-tax years: From 8e46d16c5a784e9379b7dbc65e10df7e48312819 Mon Sep 17 00:00:00 2001 From: Ziming Date: Wed, 11 Nov 2026 19:35:58 -0500 Subject: [PATCH 3/5] Cap deemed MSP income at the own-income result and require both spouses on Medicare Deeming a spouse's income could raise a person's Medicare Savings Program tier. 20 CFR 416.1163(e)(2) says the result under the deeming rules cannot be better than the person's own income gives, so the deeming row now applies only when it is the stricter test, measured as income against its guideline. Following the project lead's ruling of 2026-11-10, spouses are tested as a couple only when both are on Medicare (HCFA memorandum of October 2, 1997; Texas MEPD Appendix IX), and nothing is deemed from a spouse who is eligible for SSI, who is not an ineligible spouse (20 CFR 416.1160(d)). Tests: Case 32 now expects QI; Cases 26 and 33 are tested alone; new cases pin the cap, the $497 boundary and the allocation taken from a spouse's wages. The ruling is recorded in source_conflicts/candidates.yaml. Co-Authored-By: Claude Fable 5.2 --- changelog.d/msp-abd-spouse-income.fixed.md | 2 +- .../income/msp_countable_income.yaml | 195 ++++++++++++++++-- .../income/_msp_spouse_income.py | 151 ++++++++++++-- .../income/msp_countable_income.py | 130 ++---------- .../income/msp_tests_as_couple.py | 36 +++- source_conflicts/candidates.yaml | 53 +++++ 6 files changed, 414 insertions(+), 153 deletions(-) diff --git a/changelog.d/msp-abd-spouse-income.fixed.md b/changelog.d/msp-abd-spouse-income.fixed.md index f51776f4faa..f88dd9bf3aa 100644 --- a/changelog.d/msp-abd-spouse-income.fixed.md +++ b/changelog.d/msp-abd-spouse-income.fixed.md @@ -1 +1 @@ -Apply SSI's eligible-couple and spouse deeming rules to Medicare Savings Program countable income and the poverty guideline when only one spouse is on Medicare, including a spouse who is aged, blind or disabled. +Apply SSI's spouse deeming rules to Medicare Savings Program countable income and the poverty guideline when only one spouse is on Medicare, including a spouse who is aged, blind or disabled: a spouse who is not eligible for SSI has income deemed above the rate difference, after allocations for ineligible children, and deeming cannot give a better tier than the person's own income does (20 CFR 416.1163). Test spouses as a couple only when both are on Medicare. diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml index 8b63696d1bd..e24ce662b15 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml @@ -616,7 +616,7 @@ msp_fpg: [1_330, 1_803.33] msp_category: [QI, NONE] -- name: Case 26, an eligible SSI couple is tested together when one spouse is on Medicare. +- name: Case 26, an eligible SSI couple with one spouse on Medicare is tested as two individuals. period: 2026-01 absolute_error_margin: 0.01 input: @@ -642,12 +642,15 @@ output: # 20 CFR 416.1801(c): 1,400 - 20 = 1,380 is below the 1,491 couple rate, so each # spouse is eligible for SSI: (1,491 - 1,380) / 2 = 55.50. - # 1,380 is at or below the two-person 1,803.33, so QMB. Tested on the one-person - # 1,330 instead, person1 would be SLMB. + # Only person1 is on Medicare, so the two are not tested together (CMS memorandum + # of October 2, 1997), and neither is an ineligible spouse, so nothing is deemed + # either way (20 CFR 416.1160(d)). person1 alone: 1,380 against the one-person + # 1,330 is SLMB. Tested together on the two-person 1,803.33, it would be QMB. uncapped_ssi: [55.50, 55.50] - msp_countable_income: [1_380, 1_380] - msp_fpg: [1_803.33, 1_803.33] - msp_category: [QMB, NONE] + msp_tests_as_couple: [false, false] + msp_countable_income: [1_380, 0] + msp_fpg: [1_330, 1_330] + msp_category: [SLMB, NONE] - name: Case 27, income at or below the rate difference is not deemed from a spouse who is not aged, blind or disabled. period: 2026-01 @@ -803,7 +806,7 @@ msp_fpg: [1_330, 1_803.33] msp_category: [QI, NONE] -- name: Case 32, a spouse's income one dollar above the rate difference is deemed. +- name: Case 32, a spouse's income one dollar above the rate difference cannot raise the tier. period: 2026-01 absolute_error_margin: 0.01 input: @@ -827,14 +830,19 @@ members: [person1, person2] state_code: TX output: - # 20 CFR 416.1163(d)(2): person2's 5,976 / 12 = 498 is above 497, so it is deemed: - # 1,680 + 498 - 20 = 2,158 against the two-person 1,803.33. - # 120% is 2,164, so SLMB. - msp_countable_income: [2_158, 2_158] - msp_fpg: [1_803.33, 1_803.33] - msp_category: [SLMB, NONE] + # 20 CFR 416.1163(d)(2): person2's 5,976 / 12 = 498 is above 497, so deeming gives + # 1,680 + 498 - 20 = 2,158 against the two-person 1,803.33: SLMB (120% is 2,164). + # 416.1163(e)(2): deeming cannot leave person1 better off than their own income. + # Alone, 1,680 - 20 = 1,660 against the one-person 1,330 is QI (120% is 1,596 and + # 135% is 1,795.50), the less generous tier, so person1 is tested alone, as in + # Case 31. + # person2 has person1's 1,680 deemed: 498 + 1,680 - 20 = 2,158. + msp_tests_as_couple: [false, true] + msp_countable_income: [1_660, 2_158] + msp_fpg: [1_330, 1_803.33] + msp_category: [QI, NONE] -- name: Case 33, Illinois gives an eligible SSI couple one 25 dollar exemption when one spouse is on Medicare. +- name: Case 33, an Illinois applicant whose spouse is eligible for SSI and not on Medicare is tested alone. period: 2026-01 absolute_error_margin: 0.01 input: @@ -861,9 +869,160 @@ output: # 20 CFR 416.1801(c): 100 + 1,300 - 20 = 1,380 is below the 1,491 couple rate, so # each spouse is eligible for SSI: (1,491 - 1,380) / 2 = 55.50. - # PM 15-04-03-a: only person1 applies, so one $25: 100 + 1,300 - 25 = 1,375. - # A $25 for each spouse would give 1,350. + # person2 is not on Medicare and is not an ineligible spouse (20 CFR 416.1160(d)), + # so person2's 1,300 is not deemed, though it is above 497: person1 has 100 - 25 = + # 75 against the one-person 1,330. Deemed, it would be 100 + 1,300 - 25 = 1,375 + # against the two-person 1,803.33. person2 alone: 1,300 - 25 = 1,275. uncapped_ssi: [55.50, 55.50] - msp_countable_income: [1_375, 1_375] - msp_fpg: [1_803.33, 1_803.33] + msp_tests_as_couple: [false, false] + msp_countable_income: [75, 1_275] + msp_fpg: [1_330, 1_330] + msp_category: [QMB, NONE] + +- name: Case 34, a spouse's deemed wages cannot give a tier that the person's own income rules out. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 25_200 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_earned_income: 6_000 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(e)(2). person1 alone: 2,100 - 20 = 2,080, above 135% of the + # one-person 1,330 (1,795.50), so no tier. + # person2's wages of 500 are above 497. Deemed, person1 would have + # 2,080 + (500 - 65) / 2 = 2,297.50 against the two-person 1,803.33, which is + # between 120% (2,164) and 135% (2,434.50): QI. The own-income test is the less + # generous one, so person1 is tested alone and gets no tier. + # person2 has person1's 2,100 deemed: 2,080 + (500 - 65) / 2 = 2,297.50. + msp_tests_as_couple: [false, true] + msp_countable_income: [2_080, 2_297.5] + msp_fpg: [1_330, 1_803.33] + msp_category: [NONE, NONE] + +- name: Case 35, a spouse's income at the rate difference is not deemed when deeming would be the stricter test. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 16_080 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 5_964 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(1): person2's 5,964 / 12 = 497 is not above 497, so person1 is + # tested alone: 1,340 - 20 = 1,320, at or below the one-person 1,330, so QMB. + # Deemed, it would be 1,340 + 497 - 20 = 1,817 against the two-person 1,803.33: SLMB. + # person2 has person1's 1,340 deemed: 497 + 1,340 - 20 = 1,817. + msp_tests_as_couple: [false, true] + msp_countable_income: [1_320, 1_817] + msp_fpg: [1_330, 1_803.33] msp_category: [QMB, NONE] + +- name: Case 36, a spouse's income one dollar above the rate difference is deemed when that is the stricter test. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 16_080 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 5_976 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1163(d)(2): person2's 5,976 / 12 = 498 is above 497, so it is deemed: + # 1,340 + 498 - 20 = 1,818, above the two-person 1,803.33 and below 120% (2,164), + # so SLMB. Alone, person1's 1,320 is QMB (Case 35), so the deemed test is the less + # generous one and applies (416.1163(e)(2)). + msp_tests_as_couple: [true, true] + msp_countable_income: [1_818, 1_818] + msp_fpg: [1_803.33, 1_803.33] + msp_category: [SLMB, NONE] + +- name: Case 37, allocations for ineligible children come off the spouse's wages after unearned income. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 7_200 + person2: + age: 50 + is_tax_unit_spouse: true + ssi_unearned_income: 3_600 + ssi_earned_income: 24_000 + person3: + age: 12 + person4: + age: 10 + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + marital_units: + marital_unit: + members: [person1, person2] + child1_marital_unit: + members: [person3] + child2_marital_unit: + members: [person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: TX + output: + # 20 CFR 416.1163(b)(3): two allocations of 497 total 994. They take person2's + # unearned 300 first and the balance of 694 from wages: 2,000 - 694 = 1,306, which + # is above 497 and is deemed to person1: + # (600 - 20) + (1,306 - 65) / 2 = 580 + 620.50 = 1,200.50, at or below the + # two-person 1,803.33, so QMB. With no allocation taken from wages it would be + # 580 + (2,000 - 65) / 2 = 1,547.50. + # person2: person1's 600 is less than the 994 of allocations, so nothing is deemed: + # (300 - 20) + (2,000 - 65) / 2 = 1,247.50 alone. + msp_tests_as_couple: [true, false, false, false] + msp_countable_income: [1_200.5, 1_247.5, 0, 0] + msp_fpg: [1_803.33, 1_330, 1_330, 1_330] + msp_category: [QMB, NONE, NONE, NONE] diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py index d599a79bc19..6a4198e6325 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py @@ -1,4 +1,7 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.ssa.ssi.eligibility.income._apply_ssi_exclusions import ( + _apply_ssi_exclusions, +) def msp_spouse_value(values: ArrayLike, spouse: ArrayLike) -> ArrayLike: @@ -11,32 +14,140 @@ def msp_spouse_value(values: ArrayLike, spouse: ArrayLike) -> ArrayLike: def msp_spouses_combine_income( person: Population, period: Period, spouse: ArrayLike ) -> ArrayLike: - # Spouses who are both on Medicare are tested together. So is an eligible - # couple: each spouse must be eligible for SSI (20 CFR 416.1801(c); POMS SI - # 00501.154 A.1), not only aged, blind or disabled, and uncapped_ssi above - # zero adds the income test that is_ssi_eligible leaves out. + # Spouses who are both on Medicare are tested together, against the + # two-person guideline. CMS's family-size memorandum of October 2, 1997 + # treats people in the SSI-related poverty-level groups "as individuals or, + # if both members of a couple were eligible, as a couple", so a couple with + # one spouse on Medicare is not tested together, even an eligible SSI couple. is_medicare_eligible = person("is_medicare_eligible", period.this_year) - both_on_medicare = is_medicare_eligible & msp_spouse_value( - is_medicare_eligible, spouse - ) - eligible_for_ssi = person("uncapped_ssi", period) > 0 - eligible_couple = ( - person("ssi_couple_computation_applies", period) - & eligible_for_ssi - & msp_spouse_value(eligible_for_ssi, spouse) - ) - return both_on_medicare | eligible_couple + return is_medicare_eligible & msp_spouse_value(is_medicare_eligible, spouse) -def msp_spouse_income(person: Population, year: Period, spouse: ArrayLike) -> tuple: - # A spouse's annual earned and unearned income after allocations for - # ineligible children, which come off unearned income first (20 CFR +def msp_spouse_income(person: Population, period: Period, spouse: ArrayLike) -> tuple: + # An ineligible spouse's annual earned and unearned income after allocations + # for ineligible children, which come off unearned income first (20 CFR # 416.1163(a) and (b)). Any spouse who is not eligible for SSI is an # ineligible spouse, whether or not aged, blind or disabled (20 CFR - # 416.1160(d)). - spouse_earned = msp_spouse_value(person("ssi_earned_income", year), spouse) - spouse_unearned = msp_spouse_value(person("ssi_unearned_income", year), spouse) + # 416.1160(d)). A spouse who is eligible for SSI is not one, so nothing is + # deemed from that spouse. Each spouse must be eligible for SSI (20 CFR + # 416.1801(c); POMS SI 00501.154 A.1), not only aged, blind or disabled: + # uncapped_ssi above zero adds the income test that is_ssi_eligible leaves + # out. + year = period.this_year + spouse_eligible_for_ssi = msp_spouse_value( + person("uncapped_ssi", period) > 0, spouse + ) + spouse_earned = where( + spouse_eligible_for_ssi, + 0, + msp_spouse_value(person("ssi_earned_income", year), spouse), + ) + spouse_unearned = where( + spouse_eligible_for_ssi, + 0, + msp_spouse_value(person("ssi_unearned_income", year), spouse), + ) allocations = add(person.tax_unit, year, ["ssi_ineligible_child_allocation"]) earned_left = max_(spouse_earned - max_(allocations - spouse_unearned, 0), 0) unearned_left = max_(spouse_unearned - allocations, 0) return earned_left, unearned_left + + +def msp_countable_amounts( + person: Population, period: Period, parameters, spouse: ArrayLike +) -> tuple: + # A person's annual countable income three ways: from their own income alone, + # with an ineligible spouse's income deemed, and combined with the spouse's as + # a couple. msp_countable_income picks one; msp_tests_as_couple compares the + # first two (20 CFR 416.1163(e)(2)). + year = period.this_year + earned_income = person("ssi_earned_income", year) + unearned_income = person("ssi_unearned_income", year) + is_medicare_eligible = person("is_medicare_eligible", year) + both_medicare_eligible = is_medicare_eligible & msp_spouse_value( + is_medicare_eligible, spouse + ) + + blind_or_disabled_working_student_exclusion = person( + "ssi_blind_or_disabled_working_student_exclusion", year + ) + personal_earned_income = max_( + earned_income - blind_or_disabled_working_student_exclusion, + 0, + ) + state = person.household("state_code_str", period) + p = parameters(period).gov.hhs.medicare.savings_programs.eligibility.income + ssi_general = parameters(period).gov.ssa.ssi.income.exclusions.general + state_exclusion = p.state_general_exclusion[state] + general_exclusion = max_(ssi_general, state_exclusion) + # Illinois exempts the first $25 of income other than SSI and + # contributions such as alimony and child support, and gives each + # applying spouse their own exemption (PM 15-04-03-a; 89 Ill. Adm. + # Code 120.335(a)(1)); SSI and Mississippi allow one per couple. + # Floor each kind of income: a self-employment loss earns no exemption + # and does not offset unearned income. + own_monthly_income = max_(person("ssi_earned_income", period), 0) + max_( + person("ssi_unearned_income", period), 0 + ) + excludes_contributions = p.state_general_exclusion_excludes_contributions[ + state + ].astype(bool) + contributions = add(person, period, p.contribution_sources) + qualifying_income = where( + excludes_contributions, + max_(own_monthly_income - contributions, 0), + own_monthly_income, + ) + # The SSI general exclusion stays the floor (42 U.S.C. 1396a(r)(2)). + own_general_exclusion = where( + excludes_contributions, + max_(ssi_general, min_(state_exclusion, qualifying_income)), + general_exclusion, + ) + # Two spouses on Medicare each apply. When only one does, PM 15-04-03-a + # allows one $25 on income in the standard, even if that spouse has no + # income other than SSI or contributions. + per_spouse = p.state_general_exclusion_per_spouse[state].astype(bool) + own_exemption = min_(state_exclusion, qualifying_income) + couple_general_exclusion = where( + per_spouse & both_medicare_eligible, + max_( + ssi_general, + own_exemption + msp_spouse_value(own_exemption, spouse), + ), + general_exclusion, + ) + + spouse_earned_income, spouse_unearned_income = msp_spouse_income( + person, period, spouse + ) + personal_countable_income = _apply_ssi_exclusions( + personal_earned_income, + unearned_income, + parameters, + year, + general_exclusion=own_general_exclusion, + ) + + couple_countable = _apply_ssi_exclusions( + max_( + earned_income + + msp_spouse_value(earned_income, spouse) + - blind_or_disabled_working_student_exclusion + - msp_spouse_value(blind_or_disabled_working_student_exclusion, spouse), + 0, + ), + unearned_income + msp_spouse_value(unearned_income, spouse), + parameters, + year, + general_exclusion=couple_general_exclusion, + ) + + deemed_countable = _apply_ssi_exclusions( + personal_earned_income + spouse_earned_income, + unearned_income + spouse_unearned_income, + parameters, + year, + general_exclusion=general_exclusion, + ) + return personal_countable_income, deemed_countable, couple_countable diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py index 196ced94d51..25e260a02aa 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_countable_income.py @@ -1,12 +1,8 @@ from policyengine_us.model_api import * from policyengine_us.variables.gov.hhs.medicare.savings_programs.income._msp_spouse_income import ( - msp_spouse_income, - msp_spouse_value, + msp_countable_amounts, msp_spouses_combine_income, ) -from policyengine_us.variables.gov.ssa.ssi.eligibility.income._apply_ssi_exclusions import ( - _apply_ssi_exclusions, -) from policyengine_us.variables.gov.ssa.ssi.eligibility.resources.deemed._ssi_spouses import ( _ssi_spouse_index, ) @@ -26,6 +22,7 @@ class msp_countable_income(Variable): "https://www.law.cornell.edu/cfr/text/20/416.1163", "https://www.law.cornell.edu/cfr/text/20/416.1801", "https://secure.ssa.gov/poms.nsf/lnx/0500501154", + "https://www.medicaid.gov/sites/default/files/2019-12/medicaid-eligibilty-memo.pdf#page=2", "https://secure.ssa.gov/apps10/poms.nsf/lnx/0501715010", "https://www.medicare.gov/basics/costs/help/medicare-savings-programs", "https://www.law.cornell.edu/uscode/text/42/1396a#r_2", @@ -40,20 +37,24 @@ class msp_countable_income(Variable): 2. $65 earned income exclusion 3. 50% of remaining earned income excluded - For married couples where both spouses are Medicare-eligible, or who are an - eligible couple because each is eligible for SSI (20 CFR 416.412 and - 416.1801(c)), both spouses' incomes are combined before exclusions are - applied, and the $20 exclusion is taken once on the combined income. + For married couples where both spouses are Medicare-eligible, both spouses' + incomes are combined before exclusions are applied, and the $20 exclusion is + taken once on the combined income. - Any other spouse is an ineligible spouse under 20 CFR 416.1160(d), even one - who is aged, blind or disabled. Under 20 CFR 416.1163, allocations for - ineligible children come off that spouse's income. A remainder above the - difference between the couple and individual benefit rates is added to the - person's own income before exclusions, and otherwise nothing is deemed. A - medical treatment facility that separates a couple leaves each with their own - income (20 CFR 416.414(b)(3)). The eligibility variables (is_qmb_eligible, - is_slmb_eligible, is_qi_eligible) compare the result with msp_fpg, which is the - couple FPL whenever msp_tests_as_couple is true. + A spouse who is not on Medicare and is eligible for SSI (20 CFR 416.1801(c)) + is not an ineligible spouse, so nothing is deemed from that spouse and the + person is tested alone. Any other spouse is an ineligible spouse under 20 CFR + 416.1160(d), even one who is aged, blind or disabled. Under 20 CFR 416.1163, + allocations for ineligible children come off that spouse's income. A remainder + above the difference between the couple and individual benefit rates is added + to the person's own income before exclusions, and otherwise nothing is deemed. + A medical treatment facility that separates a couple leaves each with their + own income (20 CFR 416.414(b)(3)). Deeming cannot leave a person better off + than their own income would (20 CFR 416.1163(e)(2)), so a person whose own + income is the stricter test against the one-person FPL keeps their own income. + The eligibility variables (is_qmb_eligible, is_slmb_eligible, is_qi_eligible) + compare the result with msp_fpg, which is the couple FPL whenever + msp_tests_as_couple is true. Under 42 U.S.C. 1396a(r)(2) a state may exclude more than the $20 SSI general income exclusion; Illinois and Mississippi use their larger @@ -66,96 +67,9 @@ class msp_countable_income(Variable): """ def formula(person, period, parameters): - year = period.this_year - earned_income = person("ssi_earned_income", year) - unearned_income = person("ssi_unearned_income", year) - spouse = _ssi_spouse_index(person, year) - is_medicare_eligible = person("is_medicare_eligible", year) - both_medicare_eligible = is_medicare_eligible & msp_spouse_value( - is_medicare_eligible, spouse - ) - - blind_or_disabled_working_student_exclusion = person( - "ssi_blind_or_disabled_working_student_exclusion", year - ) - personal_earned_income = max_( - earned_income - blind_or_disabled_working_student_exclusion, - 0, - ) - state = person.household("state_code_str", period) - p = parameters(period).gov.hhs.medicare.savings_programs.eligibility.income - ssi_general = parameters(period).gov.ssa.ssi.income.exclusions.general - state_exclusion = p.state_general_exclusion[state] - general_exclusion = max_(ssi_general, state_exclusion) - # Illinois exempts the first $25 of income other than SSI and - # contributions such as alimony and child support, and gives each - # applying spouse their own exemption (PM 15-04-03-a; 89 Ill. Adm. - # Code 120.335(a)(1)); SSI and Mississippi allow one per couple. - # Floor each kind of income: a self-employment loss earns no exemption - # and does not offset unearned income. - own_monthly_income = max_(person("ssi_earned_income", period), 0) + max_( - person("ssi_unearned_income", period), 0 - ) - excludes_contributions = p.state_general_exclusion_excludes_contributions[ - state - ].astype(bool) - contributions = add(person, period, p.contribution_sources) - qualifying_income = where( - excludes_contributions, - max_(own_monthly_income - contributions, 0), - own_monthly_income, - ) - # The SSI general exclusion stays the floor (42 U.S.C. 1396a(r)(2)). - own_general_exclusion = where( - excludes_contributions, - max_(ssi_general, min_(state_exclusion, qualifying_income)), - general_exclusion, - ) - # Two spouses on Medicare each apply. When only one does, PM 15-04-03-a - # allows one $25 on income in the standard, even if that spouse has no - # income other than SSI or contributions. - per_spouse = p.state_general_exclusion_per_spouse[state].astype(bool) - own_exemption = min_(state_exclusion, qualifying_income) - couple_general_exclusion = where( - per_spouse & both_medicare_eligible, - max_( - ssi_general, - own_exemption + msp_spouse_value(own_exemption, spouse), - ), - general_exclusion, - ) - - spouse_earned_income, spouse_unearned_income = msp_spouse_income( - person, year, spouse - ) - personal_countable_income = _apply_ssi_exclusions( - personal_earned_income, - unearned_income, - parameters, - year, - general_exclusion=own_general_exclusion, - ) - - couple_countable = _apply_ssi_exclusions( - max_( - earned_income - + msp_spouse_value(earned_income, spouse) - - blind_or_disabled_working_student_exclusion - - msp_spouse_value(blind_or_disabled_working_student_exclusion, spouse), - 0, - ), - unearned_income + msp_spouse_value(unearned_income, spouse), - parameters, - year, - general_exclusion=couple_general_exclusion, - ) - - deemed_countable = _apply_ssi_exclusions( - personal_earned_income + spouse_earned_income, - unearned_income + spouse_unearned_income, - parameters, - year, - general_exclusion=general_exclusion, + spouse = _ssi_spouse_index(person, period.this_year) + personal_countable_income, deemed_countable, couple_countable = ( + msp_countable_amounts(person, period, parameters, spouse) ) single_countable = where( diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py index e5c72cec3a1..c9491c841d5 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py @@ -1,5 +1,6 @@ from policyengine_us.model_api import * from policyengine_us.variables.gov.hhs.medicare.savings_programs.income._msp_spouse_income import ( + msp_countable_amounts, msp_spouse_income, msp_spouses_combine_income, ) @@ -20,14 +21,22 @@ class msp_tests_as_couple(Variable): "https://www.law.cornell.edu/cfr/text/20/416.1163", "https://www.law.cornell.edu/cfr/text/20/416.1801", "https://secure.ssa.gov/poms.nsf/lnx/0500501154", + "https://secure.ssa.gov/poms.nsf/lnx/0501320400", + "https://www.medicaid.gov/sites/default/files/2019-12/medicaid-eligibilty-memo.pdf#page=2", ) documentation = """ Whether SSI's spouse rules count a spouse's income for this person, which also makes the two-person poverty guideline the income limit. That holds when both - spouses are on Medicare, when they are an eligible couple, or when the spouse's - income after allocations for ineligible children is more than the difference - between the couple and individual benefit rates (20 CFR 416.1163(d)(2)). If it - is not more, nothing is deemed (416.1163(d)(1)). A medical treatment facility + spouses are on Medicare, or when an ineligible spouse's income after allocations + for ineligible children is more than the difference between the couple and + individual benefit rates (20 CFR 416.1163(d)(2)). If it is not more, nothing is + deemed (416.1163(d)(1)). A spouse who is eligible for SSI is not an ineligible + spouse (416.1160(d)), so nothing is deemed from that spouse, and an eligible SSI + couple with one spouse on Medicare is tested as two individuals, as CMS's + family-size memorandum of October 2, 1997 describes. Deeming cannot leave a person + better off than their own income would (416.1163(e)(2)), so a person whose own + income against the one-person guideline is the stricter test is tested alone, + which gives the less generous of the two tiers. A medical treatment facility that separates a couple also leaves each spouse tested alone (416.414(b)(3)), unless both are on Medicare, when the model still tests them together. A person with no co-resident spouse (_ssi_spouse_index) is always tested alone. @@ -36,13 +45,28 @@ class msp_tests_as_couple(Variable): def formula(person, period, parameters): year = period.this_year spouse = _ssi_spouse_index(person, year) - spouse_earned, spouse_unearned = msp_spouse_income(person, year, spouse) + spouse_earned, spouse_unearned = msp_spouse_income(person, period, spouse) p = parameters(period).gov.ssa.ssi.amount rate_difference = (p.couple - p.individual) * MONTHS_IN_YEAR spouse_income_is_deemed = spouse_earned + spouse_unearned > rate_difference split_by_facility = person("ssi_claim_is_joint", year) & ~person( "ssi_couple_computation_applies", period ) + # 20 CFR 416.1163(e)(2): "Your SSI benefit under the deeming rules cannot + # be higher than it would be if deeming did not apply." Each tier is a + # share of the poverty guideline, so the stricter test is the one with the + # higher income relative to its guideline: own income against one person's, + # or income with the spouse's deemed against two people's. + own_countable, deemed_countable, _ = msp_countable_amounts( + person, period, parameters, spouse + ) + fpg = parameters(period).gov.hhs.fpg + state_group = person.household("state_group_str", period) + individual_fpg = fpg.first_person[state_group] + couple_fpg = individual_fpg + fpg.additional_person[state_group] + deemed_test_is_stricter = ( + deemed_countable * individual_fpg > own_countable * couple_fpg + ) return msp_spouses_combine_income(person, period, spouse) | ( - spouse_income_is_deemed & ~split_by_facility + spouse_income_is_deemed & ~split_by_facility & deemed_test_is_stricter ) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 41303e1c9e6..e23a72def21 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -10617,6 +10617,59 @@ candidates: three places, and floors the result at the federal deduction, a PE safeguard that binds only when the rounded share falls below the exact federal share. Settling the federal reading (rulespec-us#1413) and using it for both would make that floor unnecessary.' +- id: us:msp-couple-standard-one-spouse-on-medicare + program: medicare-savings-programs + years: + from: 2026 + type: calendar + question: When only one spouse is on Medicare and the two are an eligible SSI couple, do the Medicare Savings Programs + test the applicant with the spouse, on combined income against the two-person guideline, or alone against the + one-person guideline? + sources: + - kind: statute + citation: 42 U.S.C. 1396d(p)(1)(B) and (p)(2)(A) + url: https://www.law.cornell.edu/uscode/text/42/1396d + - kind: regulation + citation: 20 CFR 416.1801(c) + url: https://www.law.cornell.edu/cfr/text/20/416.1801 + - kind: guidance + citation: HCFA Center for Medicaid and State Operations memorandum, October 2, 1997, Policy Governing Family Size + in Determining Eligibility for Qualified Medicare Beneficiaries and Specified Low Income Beneficiaries + url: https://www.medicaid.gov/sites/default/files/2019-12/medicaid-eligibilty-memo.pdf#page=2 + - kind: manual + citation: Texas MEPD Handbook, Appendix IX + url: https://fhb.hhs.texas.gov/handbooks/medicaid-elderly-people-disabilities-handbook/appendix-ix-medicare-savings-program-information + - kind: manual + citation: Texas MEPD Handbook, E-7200 + url: https://fhb.hhs.texas.gov/handbooks/medicaid-elderly-people-disabilities-handbook/e-7200-when-deeming-procedures-are-not-used + readings: + statute: 'Section 1396d(p)(1)(B) measures income "as determined under section 1382a of this title for purposes of + the supplemental security income program", and (p)(2)(A) sets the limit by the poverty line "applicable to a + family of the size involved". Neither says who is in the family. 20 CFR 416.1801(c) defines an eligible spouse + as a person "Who is eligible for SSI", so two spouses who are each eligible for SSI are a couple whether or not + both are on Medicare.' + other: 'The 1997 memorandum describes the federal default: "those eligible under the various SSI-related poverty + level groups were treated as individuals or, if both members of a couple were eligible, as a couple". Texas + Appendix IX: "Use the couple income range when both spouses are applying for the same program. Use the individual + income range to test eligibility for each spouse separately if both are not eligible." Texas E-7200 does not + deem income from a spouse who "is eligible for SSI".' + example: A Texas applicant, 68, on Medicare with $1,400 a month and a disabled spouse, 62, with no income and not on + Medicare are an eligible SSI couple. Tested together, $1,380 is within the two-person $1,803.33 and QMB; tested + alone, $1,380 is above the one-person $1,330 and SLMB. + pe_us: + follows: gap-fill + code: + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10633 + state: ruled + note: 'PE-US tests the applicant alone unless both spouses are on Medicare, following the 1997 memorandum and the + Texas handbook, and deems nothing from a spouse who is eligible for SSI, who is not an ineligible spouse under 20 + CFR 416.1160(d) (msp_spouses_combine_income and msp_spouse_income; msp_countable_income.yaml Cases 26 and 33). The + ruled candidate us:msp-eligible-spouse-ssi-definition settles a different question: whether an aged, blind or + disabled spouse who is not eligible for SSI is an eligible spouse. Ruled by the project lead, 2026-11-10: + https://github.com/PolicyEngine/policyengine-us/pull/10633' - id: us:msp-eligible-spouse-ssi-definition program: medicare-savings-programs years: From 64c82efc1f922eefed664a85366485e51e3c6c1e Mon Sep 17 00:00:00 2001 From: Ziming Date: Wed, 11 Nov 2026 20:45:32 -0500 Subject: [PATCH 4/5] End the facility stay before December in the MSP guideline case Since main's PR 10141, SSI combines a couple's income by the December facility status. Case 4 of msp_fpg.yaml had the spouse in a facility from July through December, so June showed both spouses with uncapped_ssi above zero, and the Medicare Savings Program rule for a spouse who is eligible for SSI tested each of them alone. The stay now ends before December. Every expected value is unchanged. Note the limit in _msp_spouse_income.py: when a stay lasts through December, the months before it still read the spouses as eligible for SSI. Co-Authored-By: Claude Fable 5.2 --- .../gov/hhs/medicare/savings_programs/income/msp_fpg.yaml | 5 +++++ .../medicare/savings_programs/income/_msp_spouse_income.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml index 0ffd2931b33..4bc7a8b68b7 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_fpg.yaml @@ -70,8 +70,10 @@ meets_ssi_disability_criteria: true ssi_lives_in_medical_treatment_facility: 2026-07: true + 2026-12: false ssi_medicaid_pays_majority_of_care: 2026-07: true + 2026-12: false ssi_unearned_income: 18_000 tax_units: tax_unit: @@ -89,6 +91,9 @@ # July, person2 in a facility (20 CFR 416.414(b)(3)): each is tested alone. # person1: 1,000 - 20 = 980, at or below 15,960 / 12 = 1,330, so QMB. # person2: 1,500 - 20 = 1,480, and not on Medicare. + # The stay ends before December because SSI attributes a couple's income + # by the year's last month (ssi_marital_unearned_income): a stay lasting + # through December would leave their June income uncombined. msp_fpg: 2026-06: [1_803.33, 1_803.33] 2026-07: [1_330, 1_330] diff --git a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py index 6a4198e6325..ee94b6b3e97 100644 --- a/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py +++ b/policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py @@ -33,6 +33,10 @@ def msp_spouse_income(person: Population, period: Period, spouse: ArrayLike) -> # 416.1801(c); POMS SI 00501.154 A.1), not only aged, blind or disabled: # uncapped_ssi above zero adds the income test that is_ssi_eligible leaves # out. + # NOTE: SSI attributes a couple's income by the year's last month + # (ssi_marital_unearned_income). In the months before a facility stay that + # lasts through December, uncapped_ssi can be above zero for spouses whose + # combined income rules SSI out, and nothing is then deemed between them. year = period.this_year spouse_eligible_for_ssi = msp_spouse_value( person("uncapped_ssi", period) > 0, spouse From 51ea1b46164e4cb9ef1269a590f83114cfbc23dc Mon Sep 17 00:00:00 2001 From: Ziming Date: Thu, 12 Nov 2026 13:22:53 -0500 Subject: [PATCH 5/5] Pin the wage half of the eligible-spouse guard and record Texas's allowances Add Case 38 to msp_countable_income.yaml: wages of a spouse who is eligible for SSI and not on Medicare are not deemed. Add the open candidate us-tx:msp-spouse-deeming-allowance for Texas MEPD Appendix XXIX's program-specific living allowances against 20 CFR 416.1163's rate difference, and name it in Case 35. Add 20 CFR 416.1160(d) to the couple-standard candidate's sources and update the eligible-spouse candidate's example for the 2026-11-10 ruling. Co-Authored-By: Claude Opus 5.5 --- .../income/msp_countable_income.yaml | 43 +++++++++++++ source_conflicts/candidates.yaml | 60 ++++++++++++++++++- 2 files changed, 101 insertions(+), 2 deletions(-) diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml index e24ce662b15..eaa204069fe 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/income/msp_countable_income.yaml @@ -942,6 +942,9 @@ # 20 CFR 416.1163(d)(1): person2's 5,964 / 12 = 497 is not above 497, so person1 is # tested alone: 1,340 - 20 = 1,320, at or below the one-person 1,330, so QMB. # Deemed, it would be 1,340 + 497 - 20 = 1,817 against the two-person 1,803.33: SLMB. + # Texas MEPD Appendix XXIX deems above 474 for QMB, so it would deem person2's 497, + # find 1,817 above its 1,804 couple limit and re-budget person1 to SLMB. The model + # uses SSI's 497; the open candidate us-tx:msp-spouse-deeming-allowance records it. # person2 has person1's 1,340 deemed: 497 + 1,340 - 20 = 1,817. msp_tests_as_couple: [false, true] msp_countable_income: [1_320, 1_817] @@ -1026,3 +1029,43 @@ msp_countable_income: [1_200.5, 1_247.5, 0, 0] msp_fpg: [1_803.33, 1_330, 1_330, 1_330] msp_category: [QMB, NONE, NONE, NONE] + +- name: Case 38, a spouse who is eligible for SSI and not on Medicare has no wages deemed. + period: 2026-01 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 68 + is_tax_unit_head: true + ssi_unearned_income: 3_600 + person2: + age: 62 + is_tax_unit_spouse: true + meets_ssi_disability_criteria: true + ssi_earned_income: 14_400 + tax_units: + tax_unit: + members: [person1, person2] + marital_units: + marital_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: TX + output: + # 20 CFR 416.1801(c): (300 - 20) + (1,200 - 65) / 2 = 280 + 567.50 = 847.50 is + # below the 1,491 couple rate, so each spouse is eligible for SSI: + # (1,491 - 847.50) / 2 = 321.75. + # person2 is not on Medicare and is not an ineligible spouse (20 CFR 416.1160(d)), + # so person2's wages are not deemed, though 1,200 is above 497: person1 has + # 300 - 20 = 280 against the one-person 1,330, so QMB. Deemed, it would be + # 280 + (1,200 - 65) / 2 = 847.50 against the two-person 1,803.33. + # person2 alone has no unearned income, so the 20 comes off wages before the 65: + # (1,200 - 20 - 65) / 2 = 557.50. + uncapped_ssi: [321.75, 321.75] + msp_tests_as_couple: [false, false] + msp_countable_income: [280, 557.5] + msp_fpg: [1_330, 1_330] + msp_category: [QMB, NONE] diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index afe29e35385..5c867f49452 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -11158,6 +11158,57 @@ candidates: income list, whose comment records that Policy Manual Revision 24-2 still describes regular VA payments as countable (income/sources/unearned.yaml, tx_fpp_countable_unearned_income.py). Confirm overlapping manual versions and effective years.' +- id: us-tx:msp-spouse-deeming-allowance + program: medicare-savings-programs + years: + from: 2026 + type: calendar + question: When Texas deems an ineligible spouse's income for the Medicare Savings Programs, is the deeming threshold, + and each ineligible child's allocation, MEPD Appendix XXIX's program-specific living allowance ($474 for QMB, $568 + for SLMB and $639 for QI-1 in 2026) or SSI's $497 difference between the couple and individual benefit rates? + sources: + - kind: statute + citation: 42 U.S.C. 1396d(p)(1)(B) + url: https://www.law.cornell.edu/uscode/text/42/1396d + - kind: regulation + citation: 20 CFR 416.1163(b)(1) and (d) + url: https://www.law.cornell.edu/cfr/text/20/416.1163 + - kind: manual + citation: Texas MEPD Handbook, Appendix XXIX (Rev. 26-2) + url: https://fhb.hhs.texas.gov/handbooks/medicaid-elderly-people-disabilities-handbook/appendix-xxix-special-deeming-eligibility-test-spouse-spouse + readings: + statute: 'Section 1396d(p)(1)(B) measures income "as determined under section 1382a of this title for purposes of + the supplemental security income program". 20 CFR 416.1163(b)(1) sets each ineligible child''s allocation at "the + difference between the Federal benefit rate for an eligible couple and the Federal benefit rate for an eligible + individual", and (d) deems nothing from a spouse whose income after allocations "is not more than" that + difference: $1,491 - $994 = $497 a month in 2026, the same for every program.' + other: 'Appendix XXIX (Rev. 26-2, information effective March 1, 2026) gives a "Program-Specific Living Allowance + Allocation: Community MEPD $497,CAS $497, QMB $474,SLMB $568, QI-1 $639", deducts it for each ineligible child + (step 3), deems nothing when the spouse''s remaining income "is no more than the program- specific living + allowance" (step 4a), and tells the worker to "re-budget for SLMB or QI-1 if applicable" when an applicant who + passes the QMB pretest fails QMB in the deeming test (step 8).' + example: A Texas applicant, 68, on Medicare with $1,340 a month and a spouse, 50, with $497 a month is QMB under the + regulation, because $497 is not more than $497, so nothing is deemed and $1,320 is within the one-person $1,330. + Under Appendix XXIX, $497 is above $474, so it is deemed for QMB, and $1,340 + $497 - $20 = $1,817 is above the + $1,804 couple limit. Re-budgeted for SLMB, $497 is not above $568, so nothing is deemed, and the applicant gets + SLMB. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/msp_tests_as_couple.py + - policyengine_us/variables/gov/hhs/medicare/savings_programs/income/_msp_spouse_income.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10633 + state: open + note: 'PE-US uses SSI''s $497 in every state, as the deeming threshold (msp_tests_as_couple) and as each ineligible + child''s allocation (ssi_ineligible_child_allocation, read in msp_spouse_income); msp_countable_income.yaml Case 35 + is the household in the example. The Texas amounts are the gaps between its couple and individual limits for each + program ($1,804 - $1,330, $2,164 - $1,596, $2,435 - $1,796). For QMB the $474 deems more income than SSI''s $497 + would; for SLMB and QI-1 the Texas amounts deem less. With no ineligible children, the tiers differ only when the + spouse has more than $474 and up to $497, the applicant''s own income is within the one-person QMB limit and the + deemed income is above the QMB couple limit. With ineligible children the allocations differ in both directions, + and Cases 24 and 37 keep their tiers either way. Following the handbook would need a Texas allowance parameter for + each program.' - id: us-tx:ssi-facility-supplement-amount-and-start program: ssi-state-supplement years: @@ -13667,6 +13718,9 @@ candidates: - kind: regulation citation: 20 CFR 416.1801(c) url: https://www.law.cornell.edu/cfr/text/20/416.1801 + - kind: regulation + citation: 20 CFR 416.1160(d) + url: https://www.law.cornell.edu/cfr/text/20/416.1160 - kind: guidance citation: HCFA Center for Medicaid and State Operations memorandum, October 2, 1997, Policy Governing Family Size in Determining Eligibility for Qualified Medicare Beneficiaries and Specified Low Income Beneficiaries @@ -13735,8 +13789,10 @@ candidates: ineligible spouse as someone who "is not eligible for SSI benefits"; POMS SI 00501.154 A.1 applies couple computation rules if "each is eligible for benefits". 416.1163 then allocates to ineligible children and deems only a remainder above the rate difference.' - example: A, on Medicare, has $1,000 a month and B, 62 and disabled, has $1,500, with two ineligible children. Combined - income is $2,480 and no tier; under deeming it is $1,000 + ($1,500 - 2 x $497) - $20 = $1,486 and QMB. + example: A, on Medicare, has $1,000 a month and B, 62 and disabled, has $1,500, with two ineligible children. Under + deeming it is $1,000 + ($1,500 - 2 x $497) - $20 = $1,486 and QMB. When this was ruled, the statute's reading combined + the two, $2,480 and no tier; since the ruling of 2026-11-10 (us:msp-couple-standard-one-spouse-on-medicare) it would + leave A alone, $980 and QMB. pe_us: follows: conflicting-source code: