From c85ff25c705c77da87b277a725dddc3ea4985cf2 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 07:42:48 +0000 Subject: [PATCH] Fix Washington WCCC eligibility at SMI limits Apply the strict homeless grace period income limit and compare monthly amounts at cent precision. Keep the high school parent limit inclusive. Co-Authored-By: GPT-6.2 Sol --- ...te-homeless-limit-and-exact-edges.fixed.md | 1 + .../income/homeless_smi_limit_applies.yaml | 12 ++++ .../states/wa/dcyf/wccc/wa_wccc_eligible.yaml | 72 +++++++++++++++++++ .../wa/dcyf/wccc/wa_wccc_income_eligible.yaml | 45 ++++++++++++ .../dcyf/wccc/eligibility/wa_wccc_eligible.py | 11 ++- .../eligibility/wa_wccc_income_eligible.py | 25 +++++++ 6 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 changelog.d/wa-wccc-snap-route-homeless-limit-and-exact-edges.fixed.md create mode 100644 policyengine_us/parameters/gov/states/wa/dcyf/wccc/eligibility/income/homeless_smi_limit_applies.yaml diff --git a/changelog.d/wa-wccc-snap-route-homeless-limit-and-exact-edges.fixed.md b/changelog.d/wa-wccc-snap-route-homeless-limit-and-exact-edges.fixed.md new file mode 100644 index 00000000000..52781709128 --- /dev/null +++ b/changelog.d/wa-wccc-snap-route-homeless-limit-and-exact-edges.fixed.md @@ -0,0 +1 @@ +Fixed Washington Working Connections Child Care income eligibility at the state median income limits. The homeless grace period requires income below its limit, and monthly income comparisons use cent precision so eligible reapplicants can qualify at the limit. diff --git a/policyengine_us/parameters/gov/states/wa/dcyf/wccc/eligibility/income/homeless_smi_limit_applies.yaml b/policyengine_us/parameters/gov/states/wa/dcyf/wccc/eligibility/income/homeless_smi_limit_applies.yaml new file mode 100644 index 00000000000..646d74ed6af --- /dev/null +++ b/policyengine_us/parameters/gov/states/wa/dcyf/wccc/eligibility/income/homeless_smi_limit_applies.yaml @@ -0,0 +1,12 @@ +description: Washington applies the State Median Income limit for the homeless grace period under the Working Connections Child Care program when this is in effect. +values: + 2018-07-01: false + 2023-12-14: true + +metadata: + unit: bool + period: month + label: Washington WCCC homeless grace period SMI limit in effect + reference: + - title: WSR 23-23-082, WAC 110-15-0023(2)(b) + href: https://lawfilesext.leg.wa.gov/law/wsr/2023/23/23-23-082.htm diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_eligible.yaml index ebb6b579642..38ca8dcbf95 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_eligible.yaml @@ -221,3 +221,75 @@ output: # WAC 110-15-0023(2)(b): "under" 85% SMI is strict less-than. wa_wccc_eligible: false + +- name: October homeless applicants at and below 85% SMI + period: 2026-10 + input: + people: &homeless_people + parent: &homeless_parent + age: {"2026": 30} + is_tax_unit_head_or_spouse: {"2026": true} + spouse: + age: {"2026": 31} + is_tax_unit_head_or_spouse: {"2026": true} + is_full_time_student: {"2026": true} + child1: &homeless_child + age: {"2026": 2} + is_tax_unit_dependent: {"2026": true} + wa_wccc_provider_type: CENTER + child2: *homeless_child + spm_units: + unit: &homeless_unit + members: &homeless_members [parent, spouse, child1, child2] + spm_unit_assets: {"2026": 5_000} + spm_unit_pre_subsidy_childcare_expenses: {"2026": 12_000} + snap: 0 + tax_units: &homeless_tax_units + tax: + members: *homeless_members + households: &homeless_households + home: + members: *homeless_members + state_code: {"2026": WA} + county_str: {"2026": ADAMS_COUNTY_WA} + is_homeless: {"2026": true} + axes: + - - name: employment_income + period: "2026" + index: 0 + count: 2 + min: 124_780 + max: 124_793.60 + - - name: is_in_k12_school + period: "2026" + index: 0 + count: 2 + min: 0 + max: 1 + output: + # Wages below and at $146,816 × 85% = $124,793.60, first for the ordinary + # homeless applicants, then for high-school parents with an inclusive limit. + wa_wccc_income_eligible: [true, false, true, true] + wa_wccc_eligible: [true, false, true, true] + # Eligible families have no copay and a $12,000 / 12 = $1,000 monthly bill. + wa_wccc: [1_000, 0, 1_000, 1_000] + +- name: January homeless applicant at exactly 85% SMI with assets above the standard limit + period: 2026-01 + input: + people: + <<: *homeless_people + parent: + <<: *homeless_parent + employment_income: 118_416.05 + spm_units: + unit: + <<: *homeless_unit + spm_unit_assets: 1_500_000 + tax_units: *homeless_tax_units + households: *homeless_households + output: + # $139,313 × 85% = $118,416.05. Both monthly amounts round to $9,868.00. + # Assets above $1 million leave only the strict homeless grace period route. + wa_wccc_eligible: false + wa_wccc: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_income_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_income_eligible.yaml index 79752918d8f..b8a237fd61c 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_income_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/wccc/wa_wccc_income_eligible.yaml @@ -208,3 +208,48 @@ # Size 2 monthly limit at 65% SMI = $4,827.156. # Income $58,000/yr = $4,833.333/mo, above limit -> ineligible. wa_wccc_income_eligible: false + +- name: January reapplicants at and above 65% SMI + period: 2026-01 + input: + people: + parent: + age: 30 + is_tax_unit_head_or_spouse: true + is_full_time_student: true + is_wccc_enrolled: true + spouse: + age: 31 + is_tax_unit_head_or_spouse: true + is_full_time_student: true + child1: &january_child + age: 2 + is_tax_unit_dependent: true + wa_wccc_provider_type: CENTER + child2: *january_child + spm_units: + unit: + members: &january_members [parent, spouse, child1, child2] + spm_unit_pre_subsidy_childcare_expenses: 28_800 + snap: 0 + tax_units: + tax: + members: *january_members + households: + home: + members: *january_members + state_code: WA + county_str: ADAMS_COUNTY_WA + axes: + - - name: employment_income + period: "2026" + index: 0 + count: 2 + min: 90_553.45 + max: 90_566 + output: + # $139,313 × 65% = $90,553.45. The inclusive limit accepts equality. + # $28,800 / 12 − $215 = $2,185. The cap is 2 × 23 × $56.14 = $2,582.44. + wa_wccc_income_eligible: [true, false] + wa_wccc_eligible: [true, false] + wa_wccc: [2_185, 0] diff --git a/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_eligible.py index 3999fac8858..6cc16c50ab7 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_eligible.py @@ -27,5 +27,14 @@ def formula(spm_unit, period, parameters): is_hgp_eligible = spm_unit("wa_wccc_hgp_eligible", period) countable_income = spm_unit("wa_wccc_countable_income", period) income_limit = spm_unit("wa_wccc_smi_limit", period) - hgp_path = is_hgp_eligible & (countable_income < income_limit) + p = parameters(period).gov.states.wa.dcyf.wccc.eligibility.income + # The 85% grace period limit applies from December 14, 2023. + rounded_income = round_(countable_income.astype(np.float64), 2) + rounded_limit = round_(income_limit.astype(np.float64), 2) + under_hgp_limit = where( + p.homeless_smi_limit_applies, + rounded_income < rounded_limit, + countable_income < income_limit, + ) + hgp_path = is_hgp_eligible & under_hgp_limit return has_eligible_child & activity_eligible & (standard_path | hgp_path) diff --git a/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_income_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_income_eligible.py index 7171567f172..859400ebc97 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_income_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/wccc/eligibility/wa_wccc_income_eligible.py @@ -11,6 +11,8 @@ class wa_wccc_income_eligible(Variable): "https://app.leg.wa.gov/wac/default.aspx?cite=110-15-0005", "https://app.leg.wa.gov/wac/default.aspx?cite=110-15-0023", "https://app.leg.wa.gov/wac/default.aspx?cite=110-15-0075", + "https://lawfilesext.leg.wa.gov/law/wsr/2022/05/22-05-007.htm", + "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.814", ) def formula(spm_unit, period, parameters): @@ -21,3 +23,26 @@ def formula(spm_unit, period, parameters): # 130% FPL gross income test for typical household sizes, so the # SNAP categorical branch is not modeled at the moment. return countable_income <= income_limit + + def formula_2022_03_06(spm_unit, period, parameters): + # Compare monthly amounts at cent precision to preserve equality. + countable_income = spm_unit("wa_wccc_countable_income", period) + income_limit = spm_unit("wa_wccc_smi_limit", period) + rounded_income = round_(countable_income.astype(np.float64), 2) + rounded_limit = round_(income_limit.astype(np.float64), 2) + + p = parameters(period).gov.states.wa.dcyf.wccc.eligibility.income + is_homeless = spm_unit.household("is_homeless", period.this_year) + uses_homeless_rate = p.homeless_smi_limit_applies & is_homeless + person = spm_unit.members + is_parent = person("is_tax_unit_head_or_spouse", period.this_year) + is_in_school = person("is_in_k12_school", period.this_year) + has_high_school_parent = spm_unit.any(is_parent & is_in_school) + + # WAC 110-15-0023(2)(b) sets a strict homeless grace period limit. + # RCW 43.216.814(3)(a)(ii) sets an inclusive high-school parent limit. + return where( + uses_homeless_rate & ~has_high_school_parent, + rounded_income < rounded_limit, + rounded_income <= rounded_limit, + )