From 4492d41414112989f527884a0ae7e8f1c99c07d1 Mon Sep 17 00:00:00 2001 From: Ziming Date: Thu, 12 Nov 2026 15:58:42 -0500 Subject: [PATCH 1/2] Deduct a California couple's dependent child's premiums whatever their marital unit 22 CCR 50555.2(a) deducts health insurance premiums paid for any person in the family. The couple budget added a tax dependent's premiums only when the dependent shared the couple's marital unit, which a child never does except in the single unit Core builds when a situation omits marital units. Add the premiums of the unmarried tax dependents of a tax unit the couple head, whatever marital unit those dependents are in, and keep a dependent couple from taking their filer's other dependents' premiums. Co-Authored-By: Claude Opus 5.5 --- .../ca-abd-fpl-dependent-premiums.fixed.md | 1 + ...l_senior_or_disabled_countable_income.yaml | 53 +++++++++++++++++-- ...nal_senior_or_disabled_countable_income.py | 23 +++++--- 3 files changed, 67 insertions(+), 10 deletions(-) create mode 100644 changelog.d/ca-abd-fpl-dependent-premiums.fixed.md diff --git a/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md b/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md new file mode 100644 index 00000000000..ffabd99f7fd --- /dev/null +++ b/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md @@ -0,0 +1 @@ +California's aged, blind and disabled FPL program deducts a couple's dependent child's health insurance premiums even when the child has their own marital unit. diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml index 27d2f4cdedc..2d56ed26550 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml @@ -877,7 +877,7 @@ # (36,000 + 24,000 - 240 - 12,000) / 2, as on main. medicaid_optional_senior_or_disabled_countable_income: [23_880, 23_880, 0] -- name: California leaves a dependent child in their own marital unit out of a couple budget. +- name: California deducts a dependent child's premiums when the child has their own marital unit. period: 2026 absolute_error_margin: 0.01 input: @@ -910,9 +910,10 @@ members: [head, spouse, child] state_code: CA output: - # (36,000 + 24,000 - 240) / 2 = 29,880 each, as on main: the child's - # explicit marital unit holds no spouse in the couple computation. - medicaid_optional_senior_or_disabled_countable_income: [29_880, 29_880, 0] + # (36,000 + 24,000 - 240 - 12,000) / 2 = 23,880 each: 22 CCR 50555.2(a) + # deducts the couple's dependent child's premiums, and a child never + # shares the couple's marital unit. + medicaid_optional_senior_or_disabled_countable_income: [23_880, 23_880, 0] - name: An unrelated adult with no tax role does not make a California couple eligible through their premiums. period: 2026 @@ -1139,3 +1140,47 @@ # 1,500 a month through June: 15,000 - 240 = 14,760 and # 12,000 - 240 = 11,760. medicaid_optional_senior_or_disabled_countable_income: [11_760, 5_760] + +- name: A California couple who are tax dependents do not take the filer's other dependents' premiums. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + son: + age: 45 + is_tax_unit_head: true + employment_income_before_lsr: 60_000 + medicare_enrolled: false + grandchild: + age: 10 + is_tax_unit_dependent: true + health_insurance_premiums: 12_000 + medicare_enrolled: false + grandfather: + age: 70 + is_tax_unit_dependent: true + pension_income: 12_000 + medicare_enrolled: false + grandmother: + age: 68 + is_tax_unit_dependent: true + pension_income: 6_000 + medicare_enrolled: false + tax_units: + tax_unit: + members: [son, grandchild, grandfather, grandmother] + marital_units: + son: + members: [son] + grandchild: + members: [grandchild] + couple: + members: [grandfather, grandmother] + households: + household: + members: [son, grandchild, grandfather, grandmother] + state_code: CA + output: + # (12,000 + 6,000 - 240) / 2 = 8,880 each. The grandchild is the son's + # dependent, not the couple's, so their premiums stay out. + medicaid_optional_senior_or_disabled_countable_income: [0, 0, 8_880, 8_880] diff --git a/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py b/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py index 9daad4aed2b..43761f352d7 100644 --- a/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py +++ b/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py @@ -3,8 +3,9 @@ _apply_medicaid_optional_senior_or_disabled_exclusions, ) from policyengine_us.variables.gov.ssa.ssi.eligibility.resources.deemed._ssi_spouses import ( - _ssi_couple_budget_total, _ssi_couple_income, + _ssi_couple_total, + _ssi_spouse_index, ) @@ -105,13 +106,23 @@ def formula(person, period, parameters): ) # 22 CCR 50555.2(a) deducts premiums paid by and purchased for any # person in the family. A couple's budget takes both spouses' - # premiums and those of unmarried tax dependents in their marital - # unit and tax unit. It leaves out another couple's dependent and an - # unrelated adult, whose income also stays out of the couple's - # combined income above when a situation omits marital units. + # premiums and, when the couple head their tax unit, those of its + # unmarried tax dependents, whatever marital unit those dependents + # are in: a child never shares a couple's marital unit. Another + # couple's dependent and an unrelated adult in another tax unit stay + # out, as do the other dependents of a tax unit the couple belong to + # as dependents. + unmarried_dependent = person("is_tax_unit_dependent", period) & ( + _ssi_spouse_index(person, period) < 0 + ) + dependents_premiums = where( + person("is_tax_unit_head_or_spouse", period), + person.tax_unit.sum(where(unmarried_dependent, own_premiums, 0)), + 0, + ) premiums = where( couple_computation, - _ssi_couple_budget_total(person, period, own_premiums), + _ssi_couple_total(person, period, own_premiums) + dependents_premiums, own_premiums, ) deducts_premiums = p.deducts_health_insurance_premiums[state].astype(bool) From 43747064d2d638d3a6a73e5df613e1d79f7279c1 Mon Sep 17 00:00:00 2001 From: Ziming Date: Thu, 12 Nov 2026 20:41:44 -0500 Subject: [PATCH 2/2] Give both spouses who file separately their dependents' premiums When a spouse is in another tax unit, add that spouse's dependents' premiums too, so both halves of the couple budget deduct the dependent once. Say "dependents" rather than "child" in the changelog and comment. Co-Authored-By: Claude Opus 5.5 --- .../ca-abd-fpl-dependent-premiums.fixed.md | 2 +- ...l_senior_or_disabled_countable_income.yaml | 39 +++++++++++++++++++ ...nal_senior_or_disabled_countable_income.py | 25 ++++++++---- 3 files changed, 57 insertions(+), 9 deletions(-) diff --git a/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md b/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md index ffabd99f7fd..467abf84db3 100644 --- a/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md +++ b/changelog.d/ca-abd-fpl-dependent-premiums.fixed.md @@ -1 +1 @@ -California's aged, blind and disabled FPL program deducts a couple's dependent child's health insurance premiums even when the child has their own marital unit. +California's aged, blind and disabled FPL program deducts a couple's unmarried tax dependents' health insurance premiums whatever their marital unit, including when the spouses file separately. diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml index 2d56ed26550..e9cd5710b9f 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml @@ -1184,3 +1184,42 @@ # (12,000 + 6,000 - 240) / 2 = 8,880 each. The grandchild is the son's # dependent, not the couple's, so their premiums stay out. medicaid_optional_senior_or_disabled_countable_income: [0, 0, 8_880, 8_880] + +- name: California spouses who file separately share their dependent's premiums in one couple budget. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + first_spouse: + age: 67 + is_tax_unit_head: true + pension_income: 36_000 + medicare_enrolled: false + child: + age: 10 + is_tax_unit_dependent: true + health_insurance_premiums: 12_000 + medicare_enrolled: false + second_spouse: + age: 67 + is_tax_unit_head: true + pension_income: 24_000 + medicare_enrolled: false + tax_units: + first: + members: [first_spouse, child] + second: + members: [second_spouse] + marital_units: + couple: + members: [first_spouse, second_spouse] + child: + members: [child] + households: + household: + members: [first_spouse, child, second_spouse] + state_code: CA + output: + # (36,000 + 24,000 - 240 - 12,000) / 2 = 23,880 each: the second spouse's + # half also deducts the child claimed in the first spouse's tax unit. + medicaid_optional_senior_or_disabled_countable_income: [23_880, 0, 23_880] diff --git a/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py b/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py index 43761f352d7..e32c30c6e9b 100644 --- a/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py +++ b/policyengine_us/variables/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.py @@ -108,21 +108,30 @@ def formula(person, period, parameters): # person in the family. A couple's budget takes both spouses' # premiums and, when the couple head their tax unit, those of its # unmarried tax dependents, whatever marital unit those dependents - # are in: a child never shares a couple's marital unit. Another - # couple's dependent and an unrelated adult in another tax unit stay - # out, as do the other dependents of a tax unit the couple belong to - # as dependents. - unmarried_dependent = person("is_tax_unit_dependent", period) & ( - _ssi_spouse_index(person, period) < 0 - ) + # are in: a child never shares a couple's marital unit. Spouses who + # file separately each take the dependents of both tax units, so the + # two halves of the budget agree. Another couple's dependent and an + # unrelated adult in another tax unit stay out, as do the other + # dependents of a tax unit the couple belong to as dependents. + spouse = _ssi_spouse_index(person, period) + safe_spouse = np.maximum(spouse, 0) + unmarried_dependent = person("is_tax_unit_dependent", period) & (spouse < 0) dependents_premiums = where( person("is_tax_unit_head_or_spouse", period), person.tax_unit.sum(where(unmarried_dependent, own_premiums, 0)), 0, ) + tax_unit_id = person.tax_unit.reference_entity.members_entity_id + spouse_in_another_tax_unit = (spouse >= 0) & ( + tax_unit_id[safe_spouse] != tax_unit_id + ) + family_dependents_premiums = dependents_premiums + where( + spouse_in_another_tax_unit, dependents_premiums[safe_spouse], 0 + ) premiums = where( couple_computation, - _ssi_couple_total(person, period, own_premiums) + dependents_premiums, + _ssi_couple_total(person, period, own_premiums) + + family_dependents_premiums, own_premiums, ) deducts_premiums = p.deducts_health_insurance_premiums[state].astype(bool)