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..467abf84db3 --- /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 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 27d2f4cdedc..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 @@ -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,86 @@ # 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] + +- 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 9daad4aed2b..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 @@ -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,32 @@ 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. 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_budget_total(person, period, own_premiums), + _ssi_couple_total(person, period, own_premiums) + + family_dependents_premiums, own_premiums, ) deducts_premiums = p.deducts_health_insurance_premiums[state].astype(bool)