From ecccd7d372f6d41f34073b091d2aaf84c390e0cf Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 06:22:29 +0000 Subject: [PATCH] Evaluate Washington ECEAP eligibility and slot values monthly Apply income limits and Birth to Three Basic Food status in the eligibility month. Evaluate a child in foster care as a family of one for the standard ECEAP income test. Co-Authored-By: GPT-6.2 Sol --- ...income-limits-and-foster-children.fixed.md | 1 + .../income/foster_child_family_of_one.yaml | 15 ++ .../dcyf/eceap/wa_birth_to_three_eceap.yaml | 33 ++++ .../wa_birth_to_three_eceap_age_eligible.yaml | 31 ++++ .../wa_birth_to_three_eceap_eligible.yaml | 91 ++++++++++- ..._birth_to_three_eceap_income_eligible.yaml | 137 ++++++++++++++++- .../gov/states/wa/dcyf/eceap/wa_eceap.yaml | 31 ++++ .../wa/dcyf/eceap/wa_eceap_age_eligible.yaml | 32 ++++ .../wa_eceap_categorically_eligible.yaml | 32 ++++ .../wa/dcyf/eceap/wa_eceap_eligible.yaml | 72 +++++++-- .../dcyf/eceap/wa_eceap_income_eligible.yaml | 142 +++++++++++++++--- .../eceap/wa_eceap_risk_factor_eligible.yaml | 111 ++++++++++---- .../wa_birth_to_three_eceap.py | 7 +- .../wa_birth_to_three_eceap_age_eligible.py | 4 +- .../wa_birth_to_three_eceap_eligible.py | 13 +- ...wa_birth_to_three_eceap_income_eligible.py | 15 +- .../gov/states/wa/dcyf/eceap/wa_eceap.py | 6 +- .../wa/dcyf/eceap/wa_eceap_age_eligible.py | 4 +- .../eceap/wa_eceap_categorically_eligible.py | 7 +- .../states/wa/dcyf/eceap/wa_eceap_eligible.py | 2 +- .../wa/dcyf/eceap/wa_eceap_income_eligible.py | 29 +++- .../eceap/wa_eceap_risk_factor_eligible.py | 37 ++--- 22 files changed, 727 insertions(+), 125 deletions(-) create mode 100644 changelog.d/wa-eceap-monthly-income-limits-and-foster-children.fixed.md create mode 100644 policyengine_us/parameters/gov/states/wa/dcyf/eceap/income/foster_child_family_of_one.yaml diff --git a/changelog.d/wa-eceap-monthly-income-limits-and-foster-children.fixed.md b/changelog.d/wa-eceap-monthly-income-limits-and-foster-children.fixed.md new file mode 100644 index 00000000000..ba28254fad0 --- /dev/null +++ b/changelog.d/wa-eceap-monthly-income-limits-and-foster-children.fixed.md @@ -0,0 +1 @@ +Evaluate Washington ECEAP and Birth to Three income limits and slot values monthly, and use the application month’s SNAP status for Birth to Three. Count each ECEAP child in foster care as a family of one with zero countable income. diff --git a/policyengine_us/parameters/gov/states/wa/dcyf/eceap/income/foster_child_family_of_one.yaml b/policyengine_us/parameters/gov/states/wa/dcyf/eceap/income/foster_child_family_of_one.yaml new file mode 100644 index 00000000000..fa421fb73d9 --- /dev/null +++ b/policyengine_us/parameters/gov/states/wa/dcyf/eceap/income/foster_child_family_of_one.yaml @@ -0,0 +1,15 @@ +description: Washington evaluates an ECEAP child in foster care as a family of one with no countable caregiver income. + +values: + 2021-07-25: false + 2025-07-01: true + +metadata: + unit: bool + period: month + label: Washington ECEAP foster child family-of-one income rule + reference: + - title: DCYF 2025-26 ECEAP Performance Standards, PAO-43(2) and PAO-44(2)(a) + href: https://www.dcyf.wa.gov/sites/default/files/pdf/eceap/2025-26-ECEAP-Performance-Standards.pdf#page=48 + - title: DCYF 2026-27 ECEAP Performance Standards, PAO-43(2) and PAO-44(2)(a) + href: https://www.dcyf.wa.gov/sites/default/files/pdf/ECEAP-2026-27performancestandards.pdf#page=48 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap.yaml index e20d113004c..66f358aba1c 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap.yaml @@ -1,5 +1,6 @@ - name: Eligible 2-year-old receives the Birth to Three per-slot value. period: 2025 + absolute_error_margin: 0.01 input: people: parent: @@ -93,3 +94,35 @@ state_code: OR output: wa_birth_to_three_eceap: [0, 0] + +- name: Birth to Three slot value begins with the July 2026 income expansion. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + parent: + age: 30 + employment_income: 40_000 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + is_snap_eligible: false + snap: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # June limit is $21,640 × 130% = $28,132. July is $139,313 × 68% × 50% = $47,366.42. + # The monthly slot is $23,645 / 12 = $1,970.42. Six months total $11,822.50. + wa_birth_to_three_eceap: + 2026-06: [0, 0] + 2026-07: [0, 1_970.42] + 2026: [0, 11_822.50] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_age_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_age_eligible.yaml index 2adafb3a76a..329435a345a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_age_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_age_eligible.yaml @@ -45,3 +45,34 @@ state_code: OR output: wa_birth_to_three_eceap_age_eligible: false + +- name: The July Birth to Three expansion applies to the two-year-old. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 40_000 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + is_snap_eligible: false + snap: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # Age two is below three. In July, $40,000 is below $139,313 × 68% × 50% = $47,366.42. + wa_birth_to_three_eceap_age_eligible: + 2026-07: [false, true] + wa_birth_to_three_eceap_eligible: + 2026-06: [false, false] + 2026-07: [false, true] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_eligible.yaml index cc21ff2965c..c63acc66152 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_eligible.yaml @@ -26,7 +26,7 @@ # $20,000 < 130% FPL family of 3 ($34,645), and child age 2 is under BT3 limit (3). wa_birth_to_three_eceap_eligible: [false, true, false] -- name: 2026 family with 2-year-old at $50,000, BT3 still in FPL era — not eligible. +- name: June 2026 family with a 2-year-old at $50,000 exceeds 130% of FPL. period: 2026 input: people: @@ -48,9 +48,9 @@ members: [parent, child] state_code: WA output: - # BT3 toggle flips 2026-07-01; annual reads Jan 1, so 2026 is still FPL. - # $50,000 well above 130% FPL family of 2, no SNAP — not eligible. - wa_birth_to_three_eceap_eligible: [false, false] + # $50,000 exceeds $21,640 × 130% = $28,132. The family has no SNAP. + wa_birth_to_three_eceap_eligible: + 2026-06: [false, false] - name: 2027 family with 2-year-old at $49,000, BT3 SMI era — eligible. period: 2027 @@ -310,3 +310,86 @@ # Income above 130% FPL and not SNAP eligible, but reported SNAP receipt # confers eligibility for the age-eligible child wa_birth_to_three_eceap_eligible: [false, true] + +- name: Birth to Three uses SNAP eligibility and receipt from the application month. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 60_000 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + is_snap_eligible: + 2026-01: true + 2026-02: false + 2026-03: false + 2026-04: false + 2026-05: false + 2026-06: false + 2026-12: false + snap: + 2026-01: 0 + 2026-02: 0 + 2026-03: 1 + 2026-04: 0 + 2026-05: 0 + 2026-06: 0 + receives_snap: + 2026-01: false + 2026-05: true + 2026-06: false + + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # $60,000 exceeds $21,640 × 130% = $28,132. January eligibility, + # March SNAP of $1 and May reported SNAP each qualify in their month. + wa_birth_to_three_eceap_eligible: + 2026-01: [false, true] + 2026-02: [false, false] + 2026-03: [false, true] + 2026-04: [false, false] + 2026-05: [false, true] + 2026-06: [false, false] + +- name: December SNAP eligibility does not qualify a child in January. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 60_000 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + is_snap_eligible: + 2026-01: false + 2026-12: true + snap: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # $60,000 exceeds $28,132 in January and $146,816 × 68% × 50% = $49,917.44 in December. + wa_birth_to_three_eceap_eligible: + 2026-01: [false, false] + 2026-12: [false, true] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_income_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_income_eligible.yaml index 2a50c5ecef4..36d9bd7d7fe 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_income_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_birth_to_three_eceap_income_eligible.yaml @@ -80,7 +80,7 @@ output: wa_birth_to_three_eceap_income_eligible: [true, true, true] -- name: 2026 still in FPL era (transition is 2026-07-01, annual reads Jan 1), $50,000 above 130% FPL not eligible. +- name: June 2026 family of three at $50,000 exceeds 130% of FPL. period: 2026 input: people: @@ -105,12 +105,11 @@ members: [parent, child, sibling] state_code: WA output: - # BT3 still uses 130% FPL for the 2026 simulation year because the - # uses_fpg toggle flips 2026-07-01 and annual periods read Jan 1. - # $50,000 is well above 130% FPL family of 3 (~$34,645+), so not eligible. - wa_birth_to_three_eceap_income_eligible: [false, false, false] + # $50,000 exceeds ($21,640 + $5,680) × 130% = $35,516. + wa_birth_to_three_eceap_income_eligible: + 2026-06: [false, false, false] -- name: 2026 still in FPL era, family of 3 at $20,000 below 130% FPL eligible. +- name: June 2026 family of three at $20,000 meets the FPL limit. period: 2026 input: people: @@ -135,7 +134,8 @@ members: [parent, child, sibling] state_code: WA output: - wa_birth_to_three_eceap_income_eligible: [true, true, true] + wa_birth_to_three_eceap_income_eligible: + 2026-06: [true, true, true] - name: 2027 SMI era, family of 3 at $50,000 below 50% SMI eligible (regression test of date transition). period: 2027 @@ -292,3 +292,126 @@ state_code: ID output: wa_birth_to_three_eceap_income_eligible: [false, false] + +- name: June 2026 Birth to Three family of 2 meets the exact poverty guideline limit. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 28_132 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # The inclusive limit is $21,640 × 130% = $28,132. + wa_birth_to_three_eceap_income_eligible: + 2026-06: [true, true] + +- name: June 2026 Birth to Three family of 6 meets the exact poverty guideline limit. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 57_668 + is_single_parent_household: false + child: + age: 2 + sibling1: + age: 6 + sibling2: + age: 6 + sibling3: + age: 6 + sibling4: + age: 6 + spm_units: + spm_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4] + households: + household: + members: [parent, child, sibling1, sibling2, sibling3, sibling4] + state_code: WA + output: + # The inclusive limit is $44,360 × 130% = $57,668. + wa_birth_to_three_eceap_income_eligible: + 2026-06: [true, true, true, true, true, true] + +- name: June 2026 Birth to Three family of 7 meets the exact poverty guideline limit. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 65_052 + is_single_parent_household: false + child: + age: 2 + sibling1: + age: 6 + sibling2: + age: 6 + sibling3: + age: 6 + sibling4: + age: 6 + sibling5: + age: 6 + spm_units: + spm_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5] + households: + household: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5] + state_code: WA + output: + # The inclusive limit is $50,040 × 130% = $65,052. + wa_birth_to_three_eceap_income_eligible: + 2026-06: [true, true, true, true, true, true, true] + +- name: Birth to Three includes annual income at the July limit to the cent. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 47_366.42 + is_single_parent_household: false + child: + age: 2 + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # July's inclusive limit is $139,313 × 68% × 50% = $47,366.42. + wa_birth_to_three_eceap_income_eligible: + 2026-06: [false, false] + 2026-07: [true, true] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap.yaml index c37a6ac4a0d..b616f8176f2 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap.yaml @@ -49,6 +49,7 @@ - name: Eligible 4-year-old in working-day model receives the working-day per-slot value. period: 2025 + absolute_error_margin: 0.01 input: people: parent: @@ -119,3 +120,33 @@ state_code: OR output: wa_eceap: [0, 0] + +- name: A four-year-old in foster care qualifies for the school-day slot value. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + parent: + age: 30 + employment_income: 150_000 + is_single_parent_household: false + child: + age: 4 + is_in_foster_care: true + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # $0 is below $139,313 × 52% × 36% = $26,079.39. + # The school-day slot is $15,638 / 12 = $1,303.17 per month. + wa_eceap: + 2026-01: [0, 1_303.17] + 2026: [0, 15_638] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.yaml index 82f2d59c4cf..79f48b6d3dd 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.yaml @@ -53,3 +53,35 @@ state_code: OR output: wa_eceap_age_eligible: false + +- name: The preschool age test applies alongside the foster-child income rule. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 150_000 + is_single_parent_household: false + child: + age: 4 + is_in_foster_care: + 2026-01: true + 2026-02: false + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # Age four is in the three-to-five modeled age range. The foster child's + # $0 of countable income is below $139,313 × 52% × 36% = $26,079.39. + wa_eceap_age_eligible: + 2026-01: [false, true] + wa_eceap_eligible: + 2026-01: [false, true] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.yaml index 1f3458b6346..931387518ef 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.yaml @@ -58,3 +58,35 @@ state_code: OR output: wa_eceap_categorically_eligible: false + +- name: A foster child qualifies through income without a categorical route. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 150_000 + is_single_parent_household: false + child: + age: 4 + is_in_foster_care: + 2026-01: true + 2026-02: false + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # The foster child has no categorical route. The standard income route + # compares $0 with $139,313 × 52% × 36% = $26,079.39. + wa_eceap_categorically_eligible: + 2026-01: [false, false] + wa_eceap_eligible: + 2026-01: [false, true] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_eligible.yaml index ddfd5d20792..10a4cf1235d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_eligible.yaml @@ -25,7 +25,8 @@ output: # Family of 3 at 130% FPL (2025) = $34,645 -> $28,000 < $34,645, income-eligible. # Child age 4 within ECEAP age range (3-5). - wa_eceap_eligible: [false, true, false] + wa_eceap_eligible: + 2025-06: [false, true, false] - name: Family of 3 in 2026 at $42,000, ECEAP eligible under 36% SMI era. period: 2026 @@ -54,7 +55,8 @@ output: # 36% SMI family of 3 = $42,128 -> $42,000 < $42,128, income-eligible. # Child age 3 within ECEAP age range. - wa_eceap_eligible: [false, true, false] + wa_eceap_eligible: + 2026-01: [false, true, false] - name: Family of 3 in 2026 at $45,000, not ECEAP eligible (above 36% SMI, no categorical). period: 2026 @@ -86,7 +88,8 @@ state_code: WA output: # $45,000 > 36% SMI ($42,128). No categorical path, no risk factor. Not eligible. - wa_eceap_eligible: [false, false, false] + wa_eceap_eligible: + 2026-01: [false, false, false] - name: Family of 3 in 2031 at $55,000, ECEAP eligible under 50% SMI era. period: 2031 @@ -140,7 +143,8 @@ is_homeless: true output: # Homelessness is a categorical path: eligible regardless of income. - wa_eceap_eligible: [false, true] + wa_eceap_eligible: + 2026-01: [false, true] - name: 6-year-old above ECEAP age range, not eligible. period: 2026 @@ -165,7 +169,8 @@ state_code: WA output: # Age 6 is above the generous ECEAP age range (3-5). - wa_eceap_eligible: [false, false] + wa_eceap_eligible: + 2026-01: [false, false] - name: Oregon family with 4-year-old and low income, not eligible due to residency. period: 2026 @@ -189,7 +194,8 @@ members: [parent, child] state_code: OR output: - wa_eceap_eligible: [false, false] + wa_eceap_eligible: + 2026-01: [false, false] # ---- Edge cases ---- @@ -219,7 +225,8 @@ state_code: WA output: # Only the 4-year-old qualifies for ECEAP (age 3-5 range; 2-year-old too young). - wa_eceap_eligible: [false, false, true] + wa_eceap_eligible: + 2026-01: [false, false, true] - name: High-income family with IEP child, ECEAP eligible via categorical path. period: 2026 @@ -245,7 +252,8 @@ state_code: WA output: # Income above any threshold but IEP is categorical path. - wa_eceap_eligible: [false, true] + wa_eceap_eligible: + 2026-01: [false, true] - name: Idaho family with 4-year-old and low income, not eligible due to residency. period: 2026 @@ -269,7 +277,8 @@ members: [parent, child] state_code: ID output: - wa_eceap_eligible: [false, false] + wa_eceap_eligible: + 2026-01: [false, false] - name: 2025 FPL era at zero income, ECEAP eligible. period: 2025 @@ -293,9 +302,10 @@ members: [parent, child] state_code: WA output: - wa_eceap_eligible: [false, true] + wa_eceap_eligible: + 2025-06: [false, true] -- name: 2026 married kinship caregiver family in 36-50% SMI band, foster preschooler ECEAP eligible via risk pathway. +- name: 2026 married kinship caregiver family in 36-50% SMI band, foster preschooler meets standard ECEAP income eligibility. period: 2026 input: people: @@ -328,6 +338,40 @@ members: [parent1, parent2, child] state_code: WA output: - # $50,000 is above the standard 36% SMI path and within the 36-50% SMI - # risk-factor band. Only the foster child is also age-eligible. - wa_eceap_eligible: [false, false, true] + # The foster child has $0 in countable income and a family size of one. + # $50,000 is above $139,313 × 84% × 36% = $42,128.25 for the caregivers. + wa_eceap_income_eligible: + 2026-01: [false, false, true] + wa_eceap_eligible: + 2026-01: [false, false, true] + +- name: ECEAP eligibility follows the month of foster placement. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 150_000 + is_single_parent_household: false + child: + age: 4 + is_in_foster_care: + 2026-01: true + 2026-02: false + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # In January, $0 < $139,313 × 52% × 36% = $26,079.39. + # In February, $150,000 exceeds the two-person limit of $34,103.82. + wa_eceap_eligible: + 2026-01: [false, true] + 2026-02: [false, false] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.yaml index 93635df21df..57a4c72c9eb 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.yaml @@ -25,7 +25,8 @@ output: # 130% FPL family of 3 in 2025 = ($15,650 + 2*$5,500) * 1.30 = $34,645. # $28,000 < $34,645, so income-eligible (within priority enrollment range below 110% FPL). - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true] - name: 2025 FPL era, family of 3 at $35,000, above 130% FPL ceiling, not eligible. period: 2025 @@ -54,7 +55,8 @@ output: # 130% FPL family of 3 in 2025 = $34,645. $35,000 > $34,645, so not income-eligible. # Risk-factor pathway (130-200% FPL with risk factor) is handled separately. - wa_eceap_income_eligible: [false, false, false] + wa_eceap_income_eligible: + 2025-06: [false, false, false] - name: 2026 SMI era, family of 3 at $42,000, below 36% SMI threshold. period: 2026 @@ -83,7 +85,8 @@ output: # 36% SMI for WA family of 3 (Oct 2025 SMI chart) = $42,128. # $42,000 < $42,128, so income-eligible. - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2026-01: [true, true, true] - name: 2026 SMI era, family of 3 at $45,000, above 36% SMI threshold. period: 2026 @@ -111,7 +114,8 @@ state_code: WA output: # 36% SMI for WA family of 3 = $42,128. $45,000 > $42,128, so not eligible. - wa_eceap_income_eligible: [false, false, false] + wa_eceap_income_eligible: + 2026-01: [false, false, false] - name: 2031 SMI era, family of 3 at $55,000, below 50% SMI threshold. period: 2031 @@ -192,7 +196,8 @@ members: [parent, child] state_code: OR output: - wa_eceap_income_eligible: [false, false] + wa_eceap_income_eligible: + 2026-01: [false, false] # ---- Edge cases ---- @@ -217,7 +222,8 @@ output: # 110% FPL family of 1 in 2025 = $15,650 * 1.10 = $17,215. At the priority enrollment # threshold (RCW 43.216.505); below the 130% FPL allowed-enrollment ceiling ($20,345). - wa_eceap_income_eligible: [true] + wa_eceap_income_eligible: + 2025-06: [true] - name: 2025 family of 1 at $17,216, in 110-130% FPL allowed-enrollment band, eligible. period: 2025 @@ -240,7 +246,8 @@ output: # $17,216 is above 110% FPL ($17,215) but below 130% FPL ($20,345). # Allowed for enrollment under RCW 43.216.512, no risk factor required. - wa_eceap_income_eligible: [true] + wa_eceap_income_eligible: + 2025-06: [true] - name: 2025 family of 2 at exactly 110% FPL ($23,265), priority enrollment threshold, eligible. period: 2025 @@ -266,7 +273,8 @@ output: # 110% FPL family of 2 in 2025 = ($15,650 + $5,500) * 1.10 = $23,265. At the priority # enrollment threshold (RCW 43.216.505); below the 130% FPL allowed-enrollment ceiling. - wa_eceap_income_eligible: [true, true] + wa_eceap_income_eligible: + 2025-06: [true, true] - name: 2025 family of 2 at $23,266, in 110-130% FPL allowed-enrollment band, eligible. period: 2025 @@ -292,7 +300,8 @@ output: # $23,266 is above 110% FPL ($23,265) but below 130% FPL ($27,495). # Allowed for enrollment under RCW 43.216.512, no risk factor required. - wa_eceap_income_eligible: [true, true] + wa_eceap_income_eligible: + 2025-06: [true, true] - name: 2025 family of 3 at $29,314, one dollar below 110% FPL priority threshold, eligible. period: 2025 @@ -320,7 +329,8 @@ state_code: WA output: # 110% FPL family of 3 in 2025 = $29,315. Below priority threshold; eligible. - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true] - name: 2025 family of 3 at $29,316, in 110-130% FPL allowed-enrollment band, eligible. period: 2025 @@ -349,7 +359,8 @@ output: # $29,316 is above 110% FPL ($29,315) but below 130% FPL ($34,645). # Allowed for enrollment under RCW 43.216.512, no risk factor required. - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true] - name: 2025 family of 3 at $34,646, one dollar above 130% FPL ceiling, not eligible. period: 2025 @@ -379,7 +390,8 @@ # 130% FPL family of 3 in 2025 = ($15,650 + 2*$5,500) * 1.30 = $34,645. # $34,646 > $34,645, so above the FPL allowed-enrollment ceiling. # Risk-factor pathway (130-200% FPL with risk factor) is handled separately. - wa_eceap_income_eligible: [false, false, false] + wa_eceap_income_eligible: + 2025-06: [false, false, false] - name: 2025 family of 4 at exactly 110% FPL ($35,365), priority enrollment threshold, eligible. period: 2025 @@ -411,7 +423,8 @@ output: # 110% FPL family of 4 in 2025 = ($15,650 + 3*$5,500) * 1.10 = $35,365. At the priority # enrollment threshold (RCW 43.216.505); below the 130% FPL allowed-enrollment ceiling. - wa_eceap_income_eligible: [true, true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true, true] - name: 2026 family of 3 at $44,425, one dollar below 36% SMI floor, eligible. period: 2026 @@ -439,7 +452,8 @@ state_code: WA output: # 36% SMI family of 3 in 2026 = $42,128.25. $42,127 <= threshold. - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2026-01: [true, true, true] - name: 2026 family of 3 at $44,426, one dollar above 36% SMI floor, not eligible. period: 2026 @@ -467,7 +481,8 @@ state_code: WA output: # 36% SMI family of 3 in 2026 = $42,128.25; $42,129 > threshold. - wa_eceap_income_eligible: [false, false, false] + wa_eceap_income_eligible: + 2026-01: [false, false, false] - name: 2031 family of 3 at $69,316, one dollar below 50% SMI floor, eligible. period: 2031 @@ -549,9 +564,10 @@ members: [parent, child, sibling] state_code: WA output: - # Period 2025 reads 2025-01-01 parameters: FPL basis active, 130% FPL ceiling. + # The 130% FPL ceiling applies in June 2025. # 2025 FPG family of 3 = $15,650 + 2*$5,500 = $26,650; 110% = $29,315 (priority threshold). - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true] - name: 2025 transition year, family of 3 at $29,316, in 110-130% FPL allowed-enrollment band, eligible. period: 2025 @@ -580,7 +596,8 @@ output: # $29,316 is above 110% FPL ($29,315) but below 130% FPL ($34,645). # Allowed for enrollment under RCW 43.216.512, no risk factor required. - wa_eceap_income_eligible: [true, true, true] + wa_eceap_income_eligible: + 2025-06: [true, true, true] - name: Zero income family, well below any threshold, eligible. period: 2026 @@ -604,7 +621,8 @@ members: [parent, child] state_code: WA output: - wa_eceap_income_eligible: [true, true] + wa_eceap_income_eligible: + 2026-01: [true, true] - name: Negative self-employment income, eligible (income below threshold). period: 2026 @@ -629,7 +647,8 @@ state_code: WA output: # Negative income is well below threshold; income-eligible. - wa_eceap_income_eligible: [true, true] + wa_eceap_income_eligible: + 2026-01: [true, true] - name: 2026 large family of 8 at $72,983, one dollar below 36% SMI floor, eligible. period: 2026 @@ -672,7 +691,8 @@ state_code: WA output: # 36% SMI family of 8 in 2026 = $69,210.70. Income $69,209 <= threshold. - wa_eceap_income_eligible: [true, true, true, true, true, true, true, true] + wa_eceap_income_eligible: + 2026-01: [true, true, true, true, true, true, true, true] - name: 2026 large family of 8 at $72,984, one dollar above 36% SMI floor, not eligible. period: 2026 @@ -714,7 +734,8 @@ members: [parent1, parent2, c1, c2, c3, c4, c5, c6] state_code: WA output: - wa_eceap_income_eligible: [false, false, false, false, false, false, false, false] + wa_eceap_income_eligible: + 2026-01: [false, false, false, false, false, false, false, false] - name: Idaho family, income below threshold, not eligible due to residency. period: 2026 @@ -738,4 +759,79 @@ members: [parent, child] state_code: ID output: - wa_eceap_income_eligible: [false, false] + wa_eceap_income_eligible: + 2026-01: [false, false] + +- name: The October 2026 ECEAP SMI update raises the limit for a family of eight. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 72_938 + is_single_parent_household: false + child: + age: 4 + sibling1: + age: 6 + sibling2: + age: 6 + sibling3: + age: 6 + sibling4: + age: 6 + sibling5: + age: 6 + sibling6: + age: 6 + spm_units: + spm_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5, sibling6] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5, sibling6] + households: + household: + members: [parent, child, sibling1, sibling2, sibling3, sibling4, sibling5, sibling6] + state_code: WA + output: + # September is $139,313 × 138% × 36% = $69,210.70. + # October is $146,816 × 138% × 36% = $72,938.19. + wa_eceap_income_eligible: + 2026-09: [false, false, false, false, false, false, false, false] + 2026-10: [true, true, true, true, true, true, true, true] + +- name: ECEAP evaluates a foster child separately from a sibling in the same home. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 150_000 + is_single_parent_household: false + child: + age: 4 + is_in_foster_care: + 2026-01: true + 2026-02: false + sibling1: + age: 4 + spm_units: + spm_unit: + members: [parent, child, sibling1] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child, sibling1] + households: + household: + members: [parent, child, sibling1] + state_code: WA + output: + # Only the foster child has $0 of countable income in January. + # The child's limit is $139,313 × 52% × 36% = $26,079.39. + # The rest of the family has $150,000, above $139,313 × 84% × 36% = $42,128.25. + wa_eceap_income_eligible: + 2026-01: [false, true, false] + 2026-02: [false, false, false] diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.yaml index a3892295ae9..91ea8f8011b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.yaml @@ -27,7 +27,8 @@ output: # 2025 FPG family of 3 = $26,650; 130% = $34,645; 200% = $53,300. # $45,000 is in band. Only child has dev-delay risk factor. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, true, false] - name: 2025 FPL era, income below 130% FPL (already standard-eligible), risk pathway not triggered. period: 2025 @@ -56,7 +57,8 @@ state_code: WA output: # Income below 130% FPL ($34,645). Risk-factor band is 130-200% FPL only. - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, false, false] - name: 2025 FPL era, income above 200% FPL with risk factor, above risk pathway band. period: 2025 @@ -85,7 +87,8 @@ state_code: WA output: # $60,000 > 200% FPL ($53,300). Risk pathway band is 130-200% FPL only. - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, false, false] - name: 2025 FPL era at exactly 130% FPL floor, below risk pathway band, not eligible. period: 2025 @@ -115,7 +118,8 @@ output: # At exactly 130% FPL floor ($34,645), income is not strictly greater than # lower bound, so not in risk-factor band (band is > 130% and <= 200%). - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, false, false] - name: 2025 FPL era at $34,646 just above 130% FPL floor with dev delay, in risk pathway band. period: 2025 @@ -150,7 +154,8 @@ state_code: WA output: # $34,646 is strictly > 130% FPL ($34,645), within risk pathway band. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, true, false] - name: 2025 FPL era at exactly 200% FPL upper bound with dev delay, in risk pathway band. period: 2025 @@ -185,7 +190,8 @@ state_code: WA output: # 200% FPL family of 3 in 2025 = $53,300. $53,300 <= upper bound is eligible. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2025-06: [false, true, false] - name: 2026, income in 36-50% SMI band with developmental delay, eligible via risk pathway. period: 2026 @@ -216,7 +222,8 @@ output: # 36% SMI family of 3 in 2026 = $42,128; 50% SMI = $58,511. $50,000 is in band. # Only child has the dev-delay risk factor. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, true, false] - name: 2026, income in 36-50% SMI band with migratory child, eligible via risk pathway. period: 2026 @@ -245,7 +252,8 @@ members: [parent, child, sibling] state_code: WA output: - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, true, false] - name: 2026, income in 36-50% SMI band with no risk factors, not eligible. period: 2026 @@ -274,7 +282,8 @@ state_code: WA output: # Income in risk-factor band but zero qualifying risk factors. - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] - name: 2026, income below 36% SMI (already standard-eligible), risk pathway not triggered. period: 2026 @@ -303,7 +312,8 @@ state_code: WA output: # Income below 36% SMI ($42,128). Risk-factor pathway only applies in 36-50% SMI band. - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] - name: 2026, income above 50% SMI with risk factor, above risk pathway band. period: 2026 @@ -332,7 +342,8 @@ state_code: WA output: # $70,000 > 50% SMI ($58,511). Risk pathway band is 36-50% SMI only. - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] - name: 2031, risk-factor pathway expired, not eligible despite risk factor. period: 2031 @@ -386,11 +397,12 @@ members: [parent, child] state_code: OR output: - wa_eceap_risk_factor_eligible: [false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false] # ---- Edge cases ---- -- name: 2030 pre-expiration, income in 36-50% SMI band with dev delay, eligible via risk pathway. +- name: Risk-factor pathway ends in August 2030. period: 2030 input: people: @@ -422,10 +434,11 @@ members: [parent, child, sibling] state_code: WA output: - # Period 2030 reads 2030-01-01 params: risk_factor_pathway in_effect = True. - # 36% SMI family of 3 in 2030 ~= $50,874; 50% SMI ~= $70,658. $60,000 in band. - # Only child has the dev-delay risk factor. - wa_eceap_risk_factor_eligible: [false, true, false] + # The child's $60,000 is in the 36% to 50% SMI band in July. + # RCW 43.216.512 expires August 1, 2030. + wa_eceap_risk_factor_eligible: + 2030-07: [false, true, false] + 2030-08: [false, false, false] - name: 2031 post-expiration, income in band with ESL risk factor, not eligible. period: 2031 @@ -487,7 +500,8 @@ output: # 36% SMI family of 3 = $42,128; 50% SMI = $58,511. $50,000 in band. # Only child has IEP risk factor. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, true, false] - name: 2026 family in 36-50% SMI band with non-English-speaking home, all persons eligible. period: 2026 @@ -522,7 +536,8 @@ is_non_english_speaking_home: true output: # ESL risk factor applies at household level: projects to all persons. - wa_eceap_risk_factor_eligible: [true, true, true] + wa_eceap_risk_factor_eligible: + 2026-01: [true, true, true] - name: 2026 family at exactly 36% SMI floor, below risk pathway band, not eligible. period: 2026 @@ -558,7 +573,8 @@ output: # At exactly 36% SMI floor ($42,128.25), income is not strictly greater than # lower bound, so not in risk-factor band (band is > 36% and <= 50%). - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] - name: 2026 family just above 36% SMI floor with dev delay, in risk pathway band. period: 2026 @@ -593,7 +609,8 @@ state_code: WA output: # $42,129 is strictly > 36% SMI ($42,128.25), within risk pathway band. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, true, false] - name: 2026 family at exactly 50% SMI upper bound with dev delay, in risk pathway band. period: 2026 @@ -628,7 +645,8 @@ state_code: WA output: # 50% SMI family of 3 in 2026 ~= $58,511.46. $58,511 <= upper bound. - wa_eceap_risk_factor_eligible: [false, true, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, true, false] - name: 2026 single-parent household in 36-50% SMI band, eligible via single-parent risk factor. period: 2026 @@ -665,7 +683,8 @@ # Single-parent flag is True only on the unmarried tax-unit head (parent), # but the risk factor projects to all SPM unit members so the child is # eligible via the single-parent path. - wa_eceap_risk_factor_eligible: [true, true, true] + wa_eceap_risk_factor_eligible: + 2026-01: [true, true, true] - name: 2026 family just above 50% SMI upper bound with dev delay, above risk pathway. period: 2026 @@ -699,9 +718,10 @@ members: [parent, child, sibling] state_code: WA output: - wa_eceap_risk_factor_eligible: [false, false, false] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] -- name: 2026 married kinship caregiver family in 36-50% SMI band, foster child eligible via child welfare risk factor. +- name: 2026 married kinship caregiver family in 36-50% SMI band, foster child qualifies under the standard income limit. period: 2026 input: people: @@ -734,10 +754,10 @@ members: [parent1, parent2, child] state_code: WA output: - # 36% SMI family of 3 = $42,128; 50% SMI = $58,511. $50,000 is in band. - # Child welfare involvement is person-specific, so only the foster child has - # this risk factor. - wa_eceap_risk_factor_eligible: [false, false, true] + # $0 for the foster child is below $139,313 × 52% × 36% = $26,079.39. + # Neither caregiver has a risk factor. + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, false] - name: 2026 married family in 36-50% SMI band, child formerly in foster care eligible via child welfare risk factor. period: 2026 @@ -772,4 +792,35 @@ members: [parent1, parent2, child] state_code: WA output: - wa_eceap_risk_factor_eligible: [false, false, true] + wa_eceap_risk_factor_eligible: + 2026-01: [false, false, true] + +- name: October 2026 ECEAP SMI update expands the risk-factor band. + period: 2026 + input: + people: + parent: + age: 30 + employment_income: 48_500 + is_single_parent_household: false + child: + age: 4 + has_developmental_delay: true + spm_units: + spm_unit: + members: [parent, child] + tanf: 0 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: WA + output: + # September's upper bound is $139,313 × 68% × 50% = $47,366.42. + # October's band is above $35,940.56 and at or below $49,917.44 + # ($146,816 × 68% × 36% and × 50%). Only the child has a risk factor. + wa_eceap_risk_factor_eligible: + 2026-09: [false, false] + 2026-10: [false, true] diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap.py index 84d0df54a0b..c0bf9d9da64 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap.py @@ -6,9 +6,12 @@ class wa_birth_to_three_eceap(Variable): entity = Person label = "Washington Birth to Three ECEAP" unit = USD - definition_period = YEAR + definition_period = MONTH defined_for = "wa_birth_to_three_eceap_eligible" reference = ( "https://fnspublic.ofm.wa.gov/FNSPublicSearch/GetPDF?packageID=74909#page=10" ) - adds = ["gov.states.wa.dcyf.eceap.birth_to_three_eceap.per_slot_rate"] + + def formula(person, period, parameters): + p = parameters(period).gov.states.wa.dcyf.eceap.birth_to_three_eceap + return p.per_slot_rate / MONTHS_IN_YEAR diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_age_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_age_eligible.py index 09e875ecd49..55416f7327a 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_age_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_age_eligible.py @@ -5,7 +5,7 @@ class wa_birth_to_three_eceap_age_eligible(Variable): value_type = bool entity = Person label = "Age-eligible for Washington Birth to Three ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.578", @@ -13,6 +13,6 @@ class wa_birth_to_three_eceap_age_eligible(Variable): ) def formula(person, period, parameters): - age = person("age", period) + age = person("age", period.this_year) p = parameters(period).gov.states.wa.dcyf.eceap.birth_to_three_eceap return age < p.age_limit diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_eligible.py index 2acb44e86e9..cf5ef4c0175 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_eligible.py @@ -5,7 +5,7 @@ class wa_birth_to_three_eceap_eligible(Variable): value_type = bool entity = Person label = "Eligible for Washington Birth to Three ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.578" @@ -14,8 +14,8 @@ def formula(person, period, parameters): # categorical pathway is Basic Food (federal SNAP or state FAP); it # does NOT include the homeless or IEP pathways from standard ECEAP. # FAP serves SNAP-ineligible legal immigrants and is not modeled - # separately at the moment, so we use SNAP eligibility or an - # explicitly provided SNAP benefit as the proxy for receipt. + # separately at the moment, so use SNAP eligibility or receipt + # in the application month. # # Early Head Start coordination: DCYF ECEAP Performance Standards # PAO-38(10) prohibit simultaneous enrollment in B-3 ECEAP and Early @@ -28,8 +28,9 @@ def formula(person, period, parameters): # omitted from household_benefits and household_state_benefits. age_eligible = person("wa_birth_to_three_eceap_age_eligible", period) income_eligible = person("wa_birth_to_three_eceap_income_eligible", period) - snap_eligible = person.spm_unit("is_snap_eligible", period) - snap_receipt = (person.spm_unit("snap", period) > 0) | ( - add(person.spm_unit, period, ["receives_snap"]) > 0 + spm_unit = person.spm_unit + snap_eligible = spm_unit("is_snap_eligible", period) + snap_receipt = (spm_unit("snap", period) > 0) | spm_unit( + "receives_snap", period ) return age_eligible & (income_eligible | snap_eligible | snap_receipt) diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_income_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_income_eligible.py index c10ed71d5be..383ac897ca4 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_income_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/birth_to_three_eceap/wa_birth_to_three_eceap_income_eligible.py @@ -1,11 +1,12 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.hhs_smi import smi class wa_birth_to_three_eceap_income_eligible(Variable): value_type = bool entity = Person label = "Income-eligible for Washington Birth to Three ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.578" @@ -15,9 +16,13 @@ def formula(person, period, parameters): # so we cannot share the parent toggle. p = parameters(period).gov.states.wa.dcyf.eceap.birth_to_three_eceap spm_unit = person.spm_unit - income = spm_unit("wa_eceap_family_income", period) + year = period.this_year + income = spm_unit("wa_eceap_family_income", year).astype(np.float64) if p.uses_fpg: - threshold = spm_unit("spm_unit_fpg", period) * p.income.fpg_rate + fpg = spm_unit("spm_unit_fpg", year).astype(np.float64) + threshold = fpg * p.income.fpg_rate else: - threshold = spm_unit("hhs_smi", period) * p.income.smi_rate - return income <= threshold + size = spm_unit("spm_unit_size", year) + state = person.household("state_code_str", year) + threshold = smi(size, state, period, parameters) * p.income.smi_rate + return np.round(income, 2) <= np.round(threshold, 2) diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap.py index 5b5284f25f4..740c59ce1d2 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap.py @@ -6,11 +6,11 @@ class wa_eceap(Variable): entity = Person label = "Washington ECEAP" unit = USD - definition_period = YEAR + definition_period = MONTH defined_for = "wa_eceap_eligible" reference = "https://www.dcyf.wa.gov/services/early-learning-providers/eceap/community-funded-eceap/funding" def formula(person, period, parameters): p = parameters(period).gov.states.wa.dcyf.eceap - slot_type = person("wa_eceap_slot_type", period) - return p.per_slot_rate[slot_type] + slot_type = person("wa_eceap_slot_type", period.this_year) + return p.per_slot_rate[slot_type] / MONTHS_IN_YEAR diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.py index cce77c8673c..3703348ec03 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_age_eligible.py @@ -5,7 +5,7 @@ class wa_eceap_age_eligible(Variable): value_type = bool entity = Person label = "Age-eligible for Washington ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.505", @@ -19,6 +19,6 @@ def formula(person, period, parameters): # at age 4 and turns 5 mid-year. PolicyEngine evaluates age annually # without an Aug-31 anchor, so we take the generous reading and treat # ages 3-5 as eligible to capture the mid-year carry-over case. - age = person("age", period) + age = person("age", period.this_year) p = parameters(period).gov.states.wa.dcyf.eceap return p.age_range.calc(age) diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.py index 626720c14db..2add1c04679 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_categorically_eligible.py @@ -5,7 +5,7 @@ class wa_eceap_categorically_eligible(Variable): value_type = bool entity = Person label = "Categorically eligible for Washington ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.505", @@ -17,6 +17,7 @@ def formula(person, period, parameters): # RCW 43.216.505(4). Foster care is NOT a categorical path here — # it appears in the priority/preference language for slot allocation # among eligible children, and as a risk factor under RCW 43.216.512. - is_homeless = person.household("is_homeless", period) - has_iep = person("has_individualized_education_program", period) + year = period.this_year + is_homeless = person.household("is_homeless", year) + has_iep = person("has_individualized_education_program", year) return is_homeless | has_iep diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_eligible.py index 01534f1e9b4..29f70ad214f 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_eligible.py @@ -5,7 +5,7 @@ class wa_eceap_eligible(Variable): value_type = bool entity = Person label = "Eligible for Washington ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.505", diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.py index 22f96bc2bf5..65972707b97 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_income_eligible.py @@ -1,11 +1,29 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.hhs_smi import smi + + +def eceap_income_and_basis(person, period, parameters, policy): + year = period.this_year + spm_unit = person.spm_unit + income = spm_unit("wa_eceap_family_income", year).astype(np.float64) + if policy.uses_fpg: + return income, spm_unit("spm_unit_fpg", year).astype(np.float64) + + # PAO-43 and PAO-44 apply the foster-child exception to the child alone. + foster_child = policy.income.foster_child_family_of_one & person( + "is_in_foster_care", period + ) + income = where(foster_child, 0, income) + size = where(foster_child, 1, spm_unit("spm_unit_size", year)) + state = person.household("state_code_str", year) + return income, smi(size, state, period, parameters) class wa_eceap_income_eligible(Variable): value_type = bool entity = Person label = "Income-eligible for Washington ECEAP under the standard pathway" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.505", @@ -15,8 +33,7 @@ class wa_eceap_income_eligible(Variable): def formula(person, period, parameters): p = parameters(period).gov.states.wa.dcyf.eceap - spm_unit = person.spm_unit - income = spm_unit("wa_eceap_family_income", period) + income, basis = eceap_income_and_basis(person, period, parameters, p) if p.uses_fpg: # 130% FPL ceiling (not 110%): families below 110% FPL have priority # for enrollment under RCW 43.216.505, while families between 110% @@ -25,7 +42,7 @@ def formula(person, period, parameters): # not simulate space allocation, so both pathways are treated as # eligible. The 130-200% FPL with-risk-factor band is handled in # wa_eceap_risk_factor_eligible. - threshold = spm_unit("spm_unit_fpg", period) * p.income.fpg_rate + threshold = basis * p.income.fpg_rate else: - threshold = spm_unit("hhs_smi", period) * p.income.smi_rate - return income <= threshold + threshold = basis * p.income.smi_rate + return np.round(income, 2) <= np.round(threshold, 2) diff --git a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.py b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.py index 6dc7e88e570..99d75f3ff44 100644 --- a/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dcyf/eceap/wa_eceap_risk_factor_eligible.py @@ -1,11 +1,14 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.states.wa.dcyf.eceap.wa_eceap_income_eligible import ( + eceap_income_and_basis, +) class wa_eceap_risk_factor_eligible(Variable): value_type = bool entity = Person label = "Risk-factor eligible for Washington ECEAP" - definition_period = YEAR + definition_period = MONTH defined_for = StateCode.WA reference = ( "https://app.leg.wa.gov/RCW/default.aspx?cite=43.216.512", @@ -20,18 +23,17 @@ def formula(person, period, parameters): if not p.income.risk_factor_pathway.in_effect: return False - spm_unit = person.spm_unit - income = spm_unit("wa_eceap_family_income", period) - # The risk-factor band starts where the standard pathway ends, so the - # lower bound reuses the parent fpg_rate / smi_rate parameter. + income, basis = eceap_income_and_basis(person, period, parameters, p) + # The risk-factor band starts above the standard income limit. if p.uses_fpg: - fpg = spm_unit("spm_unit_fpg", period) - lower_bound = fpg * p.income.fpg_rate - upper_bound = fpg * p.income.risk_factor_pathway.fpg_rate + lower_rate = p.income.fpg_rate + upper_rate = p.income.risk_factor_pathway.fpg_rate else: - smi = spm_unit("hhs_smi", period) - lower_bound = smi * p.income.smi_rate - upper_bound = smi * p.income.risk_factor_pathway.smi_rate + lower_rate = p.income.smi_rate + upper_rate = p.income.risk_factor_pathway.smi_rate + lower_bound = np.round(basis * lower_rate, 2) + upper_bound = np.round(basis * upper_rate, 2) + income = np.round(income, 2) in_income_band = (income > lower_bound) & (income <= upper_bound) # Modelable risk factors from RCW 43.216.512 and DCYF priority points. @@ -42,17 +44,18 @@ def formula(person, period, parameters): # family history, English-language-learner status (we track non-English- # speaking home at the household level, but not per-person English # proficiency reliably). - esl = person.household("is_non_english_speaking_home", period) - migrant = person("is_migratory_child", period) - developmental_delay = person("has_developmental_delay", period) - has_iep = person("has_individualized_education_program", period) + year = period.this_year + esl = person.household("is_non_english_speaking_home", year) + migrant = person("is_migratory_child", year) + developmental_delay = person("has_developmental_delay", year) + has_iep = person("has_individualized_education_program", year) child_welfare_involvement = person("is_in_foster_care", period) | person( - "was_in_foster_care", period + "was_in_foster_care", year ) # is_single_parent_household is only True on the unmarried tax-unit # head; project from the parent to the child via the SPM unit. single_parent_in_unit = person.spm_unit.any( - person("is_single_parent_household", period) + person("is_single_parent_household", year) ) has_risk_factor = ( esl