From 912258a945d43b95eb0cbace6ca8610e702e3621 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 07:54:23 +0000 Subject: [PATCH] Fix New Hampshire child care scholarship income limits and cost shares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exclude qualifying dependent students’ earnings. Apply the state median income by benefit month and include income at the limit. Apply poverty updates in July and use the published cost-share steps. Co-Authored-By: GPT-6.2 Sol --- ...-limits-and-cost-share-thresholds.fixed.md | 1 + .../dhhs/ccap/cost_share/fpg_lag_months.yaml | 10 ++ .../ccap/cost_share/income_share_rate.yaml | 2 +- .../ccap/cost_share/weekly_flat_amount.yaml | 4 +- .../dependent_student_age_limit.yaml | 12 ++ .../countable_income/earned_sources.yaml | 17 +++ .../ccap/income/countable_income/sources.yaml | 12 +- .../gov/states/nh/dhhs/ccap/integration.yaml | 39 +++--- .../nh/dhhs/ccap/nh_ccap_cost_share.yaml | 117 ++++++++++++++---- .../dhhs/ccap/nh_ccap_countable_income.yaml | 50 ++++++++ .../nh/dhhs/ccap/nh_ccap_income_eligible.yaml | 53 ++++++++ .../test_nh_ccap_cost_share_properties.py | 15 +-- .../eligibility/nh_ccap_income_eligible.py | 14 ++- .../states/nh/dhhs/ccap/nh_ccap_cost_share.py | 31 ++++- .../nh/dhhs/ccap/nh_ccap_countable_income.py | 32 ++++- 15 files changed, 327 insertions(+), 82 deletions(-) create mode 100644 changelog.d/nh-ccap-income-limits-and-cost-share-thresholds.fixed.md create mode 100644 policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/fpg_lag_months.yaml create mode 100644 policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/dependent_student_age_limit.yaml create mode 100644 policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/earned_sources.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.yaml diff --git a/changelog.d/nh-ccap-income-limits-and-cost-share-thresholds.fixed.md b/changelog.d/nh-ccap-income-limits-and-cost-share-thresholds.fixed.md new file mode 100644 index 00000000000..65a8f45baca --- /dev/null +++ b/changelog.d/nh-ccap-income-limits-and-cost-share-thresholds.fixed.md @@ -0,0 +1 @@ +Fix New Hampshire Child Care Scholarship income eligibility and family cost shares. Exclude eligible dependent students’ earnings, apply state median income by month with an inclusive limit, and apply the poverty guidelines each July with exact cost-share thresholds. diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/fpg_lag_months.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/fpg_lag_months.yaml new file mode 100644 index 00000000000..d7bfb758841 --- /dev/null +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/fpg_lag_months.yaml @@ -0,0 +1,10 @@ +description: New Hampshire delays the annual federal poverty guideline update by this many months under the Child Care Scholarship Program. +values: + 2024-01-01: 6 + +metadata: + unit: month + label: New Hampshire CCAP poverty guideline lag + reference: + - title: He-C 6910.18(e) + href: https://gc.nh.gov/rules/state_agencies/he-c6900.html diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/income_share_rate.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/income_share_rate.yaml index a8d309329eb..26e6e98af4c 100644 --- a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/income_share_rate.yaml +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/income_share_rate.yaml @@ -6,7 +6,7 @@ brackets: amount: 2024-01-01: 0 # Steps 1-2: no income-based share - threshold: - 2024-01-01: 1.3801 # > 138% FPG + 2024-01-01: 1.38 # > 138% FPG amount: 2024-01-01: 0.07 # Step 3: 7% of family income diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/weekly_flat_amount.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/weekly_flat_amount.yaml index 78f6679f543..d685d635d48 100644 --- a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/weekly_flat_amount.yaml +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/cost_share/weekly_flat_amount.yaml @@ -6,11 +6,11 @@ brackets: amount: 2024-01-01: 0 # Step 1: <= 100% FPG, $0/week - threshold: - 2024-01-01: 1.0001 # > 100% FPG + 2024-01-01: 1 # > 100% FPG amount: 2024-01-01: 5 # Step 2: $5/week - threshold: - 2024-01-01: 1.3801 # > 138% FPG + 2024-01-01: 1.38 # > 138% FPG amount: 2024-01-01: 0 # Step 3: no flat amount diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/dependent_student_age_limit.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/dependent_student_age_limit.yaml new file mode 100644 index 00000000000..08049827535 --- /dev/null +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/dependent_student_age_limit.yaml @@ -0,0 +1,12 @@ +description: New Hampshire excludes earned income for dependent full-time secondary students under this age under the Child Care Scholarship Program. +values: + 2024-01-01: 20 + +metadata: + unit: year + label: New Hampshire CCAP dependent student age limit + reference: + - title: He-C 6910.06(c)(7) + href: https://gc.nh.gov/rules/state_agencies/he-c6900.html + - title: RSA 167:78, VI + href: https://gc.nh.gov/rsa/html/XII/167/167-78.htm diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/earned_sources.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/earned_sources.yaml new file mode 100644 index 00000000000..1e6261ca415 --- /dev/null +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/earned_sources.yaml @@ -0,0 +1,17 @@ +description: New Hampshire counts these sources of earned income under the Child Care Scholarship Program unless the earner is a dependent child attending primary or secondary school or equivalent full time. +values: + 2024-01-01: + - employment_income + - self_employment_income + - sstb_self_employment_income + - farm_operations_income + +metadata: + unit: list + period: year + label: New Hampshire CCAP earned income sources + reference: + - title: He-C 6910.06(c)(7) and (d) + href: https://gc.nh.gov/rules/state_agencies/he-c6900.html + - title: RSA 167:80, IV(b) + href: https://gc.nh.gov/rsa/html/XII/167/167-80.htm diff --git a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/sources.yaml b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/sources.yaml index 0aa0187bb20..712aa851218 100644 --- a/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/sources.yaml +++ b/policyengine_us/parameters/gov/states/nh/dhhs/ccap/income/countable_income/sources.yaml @@ -1,12 +1,6 @@ -description: New Hampshire uses these income sources as countable income under the Child Care Scholarship Program. +description: New Hampshire uses these unearned income sources as countable income under the Child Care Scholarship Program. values: 2024-01-01: - # Earned income - - employment_income - - self_employment_income - - sstb_self_employment_income - - farm_operations_income - # Unearned income - social_security - pension_income - retirement_distributions @@ -24,9 +18,9 @@ values: metadata: unit: list period: year - label: New Hampshire CCAP countable income sources + label: New Hampshire CCAP countable unearned income sources reference: - title: He-C 6910.06(b)-(c),(e) - href: https://www.law.cornell.edu/regulations/new-hampshire/N-H-Admin-Code-SS-He-C-6910.06 + href: https://gc.nh.gov/rules/state_agencies/he-c6900.html - title: New Hampshire CCDF State Plan 2025-2027, Section 2.2.4 href: https://www.dhhs.nh.gov/sites/g/files/ehbemt476/files/documents2/ccdf-state-plan-2025-2027.pdf#page=25 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/integration.yaml index 0d311fbc196..20bf38ada7d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/integration.yaml @@ -1,17 +1,17 @@ # Integration tests for NH Child Care Scholarship Program (CCAP) # He-C 6910, NH DHHS # -# 2025 reference values: -# FPG family of 3: 15,650 + 5,500*2 = $26,650/yr = $2,220.83/mo -# FPG family of 2: 15,650 + 5,500 = $21,150/yr = $1,762.50/mo -# FPG family of 4: 15,650 + 5,500*3 = $32,150/yr = $2,679.17/mo +# January 2025 reference values: +# 2024 FPG family of 3: 15,060 + 5,380*2 = $25,820/yr = $2,151.67/mo +# 2024 FPG family of 2: 15,060 + 5,380 = $20,440/yr = $1,703.33/mo +# 2024 FPG family of 4: 15,060 + 5,380*3 = $31,200/yr = $2,600/mo # NH SMI (eff 2024-10-01): $146,582/yr # SMI family of 3: 146,582 * 0.84 = $123,128.88/yr # 85% SMI family of 3: $104,659.55/yr = $8,721.63/mo # SMI family of 2: 146,582 * 0.68 = $99,675.76/yr # 85% SMI family of 2: $84,724.40/yr = $7,060.37/mo -# 100% FPG monthly (fam 3): $2,220.83 -# 138% FPG monthly (fam 3): $3,064.75 +# 100% FPG monthly (fam 3): $2,151.67 +# 138% FPG monthly (fam 3): $2,969.30 - name: Case 1, basic eligible family, income below 100% FPG, $0 cost share. period: 2025-01 @@ -22,7 +22,7 @@ age: 28 weekly_hours_worked_before_lsr: 40 employment_income: 20_400 - # $20,400/yr = $1,700/mo < $1,762.50 (100% FPG for 2) + # $20,400/yr = $1,700/mo < $1,703.33 (100% FPG for 2) person2: age: 4 is_tax_unit_dependent: true @@ -48,7 +48,7 @@ nh_ccap_income_eligible: true nh_ccap_eligible: true - # Cost share: $1,700/mo < $1,762.50 (100% FPG for 2) → Step 1 → $0/week + # Cost share: $1,700/mo < $1,703.33 (100% FPG for 2) → Step 1 → $0/week nh_ccap_cost_share: 0 - name: Case 2, income between 100-138% FPG, $5 weekly cost share. @@ -61,8 +61,8 @@ weekly_hours_worked_before_lsr: 40 employment_income: 24_000 # $24,000/yr = $2,000/mo - # Family of 2: 100% FPG = $1,762.50; 138% FPG = $2,432.25 - # $2,000 > $1,762.50 and < $2,432.25 → Step 2 + # Family of 2: 100% FPG = $1,703.33; 138% FPG = $2,350.60 + # $2,000 > $1,703.33 and < $2,350.60 → Step 2 person2: age: 2 is_tax_unit_dependent: true @@ -99,7 +99,7 @@ age: 35 weekly_hours_worked_before_lsr: 40 employment_income: 60_000 - # $60,000/yr = $5,000/mo > $3,064.75 (138% FPG for 3) + # $60,000/yr = $5,000/mo > $2,969.30 (138% FPG for 3) # Step 3: 7% * $5,000 / 4.33 = $80.83/week person2: age: 35 @@ -142,8 +142,8 @@ weekly_hours_worked_before_lsr: 40 employment_income: 24_000 # $24,000/yr = $2,000/mo - # Family of 4: 100% FPG = $2,679.17/mo - # $2,000 < $2,679.17 → Step 1 → $0 + # Family of 4: 100% FPG = $2,600/mo + # $2,000 < $2,600 → Step 1 → $0 person2: age: 35 weekly_hours_worked_before_lsr: 40 @@ -180,7 +180,7 @@ nh_ccap_income_eligible: true nh_ccap_eligible: true - # Cost share: $2,000/mo < $2,679.17 (100% FPG for 4) → $0/week + # Cost share: $2,000/mo < $2,600 (100% FPG for 4) → $0/week nh_ccap_cost_share: 0 - name: Case 5, TANF enrolled bypasses income test. @@ -260,7 +260,7 @@ age: 28 weekly_hours_worked_before_lsr: 40 employment_income: 20_400 - # $20,400/yr = $1,700/mo < $1,762.50 (100% FPG for 2) + # $20,400/yr = $1,700/mo < $1,703.33 (100% FPG for 2) person2: age: 4 is_tax_unit_dependent: true @@ -302,8 +302,8 @@ weekly_hours_worked_before_lsr: 40 employment_income: 24_000 # $24,000/yr = $2,000/mo - # Family of 3: 100% FPG = $2,220.83 - # $2,000 < $2,220.83 → Step 1 → $0 cost share + # Family of 3: 100% FPG = $2,151.67 + # $2,000 < $2,151.67 → Step 1 → $0 cost share person2: age: 35 weekly_hours_worked_before_lsr: 40 @@ -389,9 +389,8 @@ age: 28 weekly_hours_worked_before_lsr: 40 employment_income: 48_000 - # $48,000/yr = $4,000/mo, above 138% of the 2024 poverty guideline for 2 ($2,350.60), - # which He-C 6910.18(e) applies until July 2025, and of the 2025 guideline ($2,432.25), - # which the model applies from January. Below 85% SMI for 2 ($7,060.37). + # $48,000/yr = $4,000/mo, above 138% of the 2024 guideline for 2 ($2,350.60). + # The 2024 guideline applies until July 2025. Income is below the SMI limit ($7,060.37/mo). person2: age: 4 is_tax_unit_dependent: true diff --git a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.yaml b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.yaml index 772115fcc17..9186694cf49 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.yaml @@ -18,7 +18,7 @@ person1: age: 30 employment_income: 21_324 - # $21,324/yr = $1,777/mo < $2,220.83 (100% FPG for 3) + # $21,324/yr = $1,777/mo < $2,151.67 (100% FPG for 3) person2: age: 5 person3: @@ -41,8 +41,8 @@ person1: age: 30 employment_income: 31_980 - # $31,980/yr = $2,665/mo > $2,220.83 (100% FPG) - # and < $3,064.75 (138% FPG) → Step 2 + # $31,980/yr = $2,665/mo > $2,151.67 (100% FPG) + # and < $2,969.30 (138% FPG) → Step 2 person2: age: 5 person3: @@ -65,7 +65,7 @@ person1: age: 30 employment_income: 53_304 - # $53,304/yr = $4,442/mo > $3,064.75 (138% FPG) + # $53,304/yr = $4,442/mo > $2,969.30 (138% FPG) # Step 3: 7% * $4,442 / 4.33 = $71.81/week person2: age: 5 @@ -83,55 +83,55 @@ nh_ccap_cost_share: 71.81 - name: Case 4, income exactly at 100% FPG boundary, step 1. - period: 2025-01 + period: 2025-07 absolute_error_margin: 0.01 input: people: person1: - age: 30 - employment_income: 26_650 + age: {2025: 30} + employment_income: {2025: 26_650} # $26,650/yr = $2,220.83/mo = exactly 100% FPG person2: - age: 5 + age: {2025: 5} person3: - age: 3 + age: {2025: 3} spm_units: spm_unit: members: [person1, person2, person3] households: household: members: [person1, person2, person3] - state_code: NH + state_code: {2025: NH} output: nh_ccap_cost_share: 0 - name: Case 5, income just below 138% FPG boundary, step 2. - period: 2025-01 + period: 2025-07 absolute_error_margin: 0.01 input: people: person1: - age: 30 - employment_income: 36_600 + age: {2025: 30} + employment_income: {2025: 36_600} # 138% FPG = $26,650 * 1.38 = $36,777/yr = $3,064.75/mo # $36,600/yr = $3,050/mo < $3,064.75 → Step 2 person2: - age: 5 + age: {2025: 5} person3: - age: 3 + age: {2025: 3} spm_units: spm_unit: members: [person1, person2, person3] households: household: members: [person1, person2, person3] - state_code: NH + state_code: {2025: NH} output: nh_ccap_cost_share: 5 # --- Edge Cases --- -- name: Case 6, income $1 above 100% FPG, transitions from step 1 to step 2. +- name: Case 6, income just above 100% FPG, transitions from step 1 to step 2. period: 2025-01 absolute_error_margin: 0.01 input: @@ -139,8 +139,8 @@ person1: age: 30 employment_income: 21_163 - # 2025 FPG family of 2: $21,150/yr = $1,762.50/mo - # $21,163/yr = $1,763.58/mo > $1,762.50 (100% FPG) → Step 2 + # 2024 FPG family of 2: $20,440/yr = $1,703.33/mo + # $21,163/yr = $1,763.58/mo > $1,703.33 (100% FPG) → Step 2 person2: age: 5 spm_units: @@ -153,7 +153,7 @@ output: nh_ccap_cost_share: 5 -- name: Case 7, income $1 above 138% FPG, transitions from step 2 to step 3. +- name: Case 7, income just above 138% FPG, transitions from step 2 to step 3. period: 2025-01 absolute_error_margin: 0.01 input: @@ -161,9 +161,9 @@ person1: age: 30 employment_income: 29_200 - # 2025 FPG family of 2: $21,150 - # 138% FPG = $29,187/yr = $2,432.25/mo - # $29,200/yr = $2,433.33/mo > $2,432.25 → Step 3 + # 2024 FPG family of 2: $20,440 + # 138% FPG = $28,207.20/yr = $2,350.60/mo + # $29,200/yr = $2,433.33/mo > $2,350.60 → Step 3 person2: age: 5 spm_units: @@ -200,13 +200,13 @@ nh_ccap_cost_share: 0 - name: Case 9, single person household, income at 100% FPG boundary. - period: 2025-01 + period: 2025-07 absolute_error_margin: 0.01 input: people: person1: - age: 5 - employment_income: 15_650 + age: {2025: 5} + employment_income: {2025: 15_650} # 2025 FPG family of 1: $15,650/yr = $1,304.17/mo spm_units: spm_unit: @@ -214,7 +214,7 @@ households: household: members: [person1] - state_code: NH + state_code: {2025: NH} output: # $1,304.17 <= $1,304.17 (100% FPG for 1) → Step 1 → $0 nh_ccap_cost_share: 0 @@ -240,3 +240,66 @@ output: # Negative income <= 100% FPG → Step 1 → $0 nh_ccap_cost_share: 0 + +- name: The 2026 poverty guideline first applies in July. + period: 2026-06 + absolute_error_margin: 0.01 + input: &two_person_household + people: + parent: + age: {2026: 28} + weekly_hours_worked_before_lsr: {2026: 40} + employment_income: {2026: 21_600} + child: + age: {2026: 4} + is_tax_unit_dependent: {2026: true} + immigration_status: {2026: CITIZEN} + childcare_hours_per_week: {2026: 40} + nh_ccap_provider_type: {2026: LICENSED_CENTER} + pre_subsidy_childcare_expenses: {2026: 6_240} + spm_units: + spm_unit: + members: [parent, child] + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: {2026: NH} + output: + # $21,600 exceeds the 2025 guideline ($21,150) but not the 2026 guideline + # ($21,640). The charge is $6,240 / 52 = $120 a week. + nh_ccap_cost_share: {2026-06: 5, 2026-07: 0} + # June: ($120 - $5) * 52 / 12 = $498.33. July: $120 * 52 / 12 = $520. + nh_ccap: {2026-06: 498.33, 2026-07: 520} + +- name: July wages one dollar above 100 percent of the poverty guideline. + period: 2026-07 + input: + <<: *two_person_household + people: + parent: {employment_income: {2026: 21_641}} + child: {age: {2026: 4}} + output: + # $21,641 > $21,640, so the family pays the Step 2 flat amount. + nh_ccap_cost_share: 5 + +- name: July wages at and above 138 percent of the poverty guideline. + period: 2026-07 + absolute_error_margin: 0.005 + input: + <<: *two_person_household + people: + parent: {age: {2026: 28}} + child: {age: {2026: 4}} + axes: + - - name: employment_income + min: 29_863.20 + max: 29_864 + count: 2 + period: 2026 + output: + # At $21,640 * 1.38 = $29,863.20, Step 2 still costs $5 a week. + # Above it, $29,864 / 12 * 0.07 / 4.33 = $40.23 a week at Step 3. + nh_ccap_cost_share: [5, 40.23] diff --git a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.yaml new file mode 100644 index 00000000000..311f19532cc --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.yaml @@ -0,0 +1,50 @@ +- name: A dependent full-time secondary student's wages are excluded. + period: 2026-07 + absolute_error_margin: 0.01 + input: + people: + parent: + age: {2026: 28} + tax_unit_role_input: {2026: HEAD} + weekly_hours_worked_before_lsr: {2026: 40} + employment_income: {2026: 24_000} + child_support_received: {2026: 1_200} + spouse: + age: {2026: 29} + tax_unit_role_input: {2026: SPOUSE} + weekly_hours_worked_before_lsr: {2026: 20} + employment_income: {2026: 6_000} + child: + age: {2026: 4} + tax_unit_role_input: {2026: DEPENDENT} + immigration_status: {2026: CITIZEN} + childcare_hours_per_week: {2026: 20} + nh_ccap_provider_type: {2026: LICENSED_CENTER} + pre_subsidy_childcare_expenses: {2026: 6_240} + student: + age: {2026: 16} + tax_unit_role_input: {2026: DEPENDENT} + is_in_k12_school: {2026: true} + is_full_time_student: {2026: true} + employment_income: {2026: 12_000} + spm_units: + spm_unit: + members: [parent, spouse, child, student] + tax_units: + tax_unit: + members: [parent, spouse, child, student] + households: + household: + members: [parent, spouse, child, student] + state_code: {2026: NH} + output: + # The spouse's 20 hours are the lower of the two parents' hours. + nh_ccap_authorized_activity_hours: 20 + nh_ccap_service_level: HALF_TIME + # ($24,000 + $6,000 + $1,200) / 12 = $2,600 a month. + nh_ccap_countable_income: 2_600 + # Annual countable income of $31,200 is below the four-person $33,000 guideline. + nh_ccap_cost_share: 0 + # $6,240 / 52 = $120 a week, below the half-time licensed-center rate. + # $120 * 52 / 12 = $520 a month. + nh_ccap: 520 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_income_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_income_eligible.yaml index 2fdd039ace0..62e53833e42 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_income_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nh/dhhs/ccap/nh_ccap_income_eligible.yaml @@ -226,3 +226,56 @@ state_code: NH output: nh_ccap_income_eligible: true + +- name: October applies the new two-person state median income. + period: 2026-10 + absolute_error_margin: 0.01 + input: &licensed_care_household + people: + parent: &working_parent + age: {2026: 28} + weekly_hours_worked_before_lsr: {2026: 40} + employment_income: {2026: 90_245} + child: &four_year_old + age: {2026: 4} + is_tax_unit_dependent: {2026: true} + immigration_status: {2026: CITIZEN} + childcare_hours_per_week: {2026: 40} + nh_ccap_provider_type: {2026: LICENSED_CENTER} + pre_subsidy_childcare_expenses: {2026: 18_720} + spm_units: + spm_unit: + members: [parent, child] + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: {2026: NH} + output: + # September limit: $152,580 * 0.68 * 0.85 = $88,191.24. + # October limit: $156,134 * 0.68 * 0.85 = $90,245.45 to the cent. + nh_ccap_income_eligible: {2026-09: false, 2026-10: true} + # October: ($280 - $90,245 / 12 * 0.07 / 4.33) * 52 / 12 = $686.50. + nh_ccap: {2026-09: 0, 2026-10: 686.50} + +- name: Income at the six-person state median income limit is eligible. + period: 2026-06 + absolute_error_margin: 0.01 + input: + <<: *licensed_care_household + people: + parent: + <<: *working_parent + employment_income: {2026: 171_194.76} + child: *four_year_old + spm_units: + spm_unit: + members: [parent, child] + spm_unit_size: {2026: 6} + output: + # $152,580 * 1.32 * 0.85 = $171,194.76 a year, or $14,266.23 a month. + nh_ccap_income_eligible: true + # ($280 - $14,266.23 * 0.07 / 4.33) * 52 / 12 = $213.93. + nh_ccap: 213.93 diff --git a/policyengine_us/tests/test_nh_ccap_cost_share_properties.py b/policyengine_us/tests/test_nh_ccap_cost_share_properties.py index 4be7fd1e142..08399471a10 100644 --- a/policyengine_us/tests/test_nh_ccap_cost_share_properties.py +++ b/policyengine_us/tests/test_nh_ccap_cost_share_properties.py @@ -13,7 +13,7 @@ charges across the steps. """ -from hypothesis import assume, example, given, settings +from hypothesis import example, given, settings from hypothesis import strategies as st import pytest @@ -36,15 +36,6 @@ def rule_cost_share(annual_income): return annual_income / 12 * 0.07 / 4.33 -def outside_boundary_slivers(annual_income): - # The parameters place the steps at 1.0001 and 1.3801 of the guideline, so a - # family inside those slivers takes the lower step. - # Integer cross-products keep 138% of the guideline, $29,187, out of the sliver. - in_first = FPG * 10_000 < annual_income * 10_000 < FPG * 10_001 - in_second = FPG * 13_800 < annual_income * 10_000 < FPG * 13_801 - return not (in_first or in_second) - - def cost_share_and_payment(annual_income, annual_charge): members = ["parent", "child"] parent = { @@ -81,7 +72,8 @@ def cost_share_and_payment(annual_income, annual_charge): @example(annual_income=0, annual_charge=18_720) @example(annual_income=FPG, annual_charge=18_720) @example(annual_income=FPG * 138 // 100, annual_charge=18_720) -@example(annual_income=29_200, annual_charge=18_720) +@example(annual_income=FPG + 1, annual_charge=18_720) +@example(annual_income=FPG * 138 // 100 + 1, annual_charge=18_720) @example(annual_income=48_000, annual_charge=18_720) @example(annual_income=80_000, annual_charge=1_000) @given( @@ -89,7 +81,6 @@ def cost_share_and_payment(annual_income, annual_charge): annual_charge=st.integers(min_value=1, max_value=40_000), ) def test_cost_share_and_payment_follow_the_rule(annual_income, annual_charge): - assume(outside_boundary_slivers(annual_income)) share, payment = cost_share_and_payment(annual_income, annual_charge) expected_share = rule_cost_share(annual_income) assert share == pytest.approx(expected_share, abs=TOLERANCE) diff --git a/policyengine_us/variables/gov/states/nh/dhhs/ccap/eligibility/nh_ccap_income_eligible.py b/policyengine_us/variables/gov/states/nh/dhhs/ccap/eligibility/nh_ccap_income_eligible.py index 73fb8f6a27e..c90e45bcab1 100644 --- a/policyengine_us/variables/gov/states/nh/dhhs/ccap/eligibility/nh_ccap_income_eligible.py +++ b/policyengine_us/variables/gov/states/nh/dhhs/ccap/eligibility/nh_ccap_income_eligible.py @@ -1,4 +1,8 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.hhs_smi import smi +from policyengine_us.variables.gov.states.nh.dhhs.ccap.nh_ccap_countable_income import ( + monthly_income_limit, +) class nh_ccap_income_eligible(Variable): @@ -7,14 +11,18 @@ class nh_ccap_income_eligible(Variable): label = "Income eligible for New Hampshire Child Care Scholarship Program" definition_period = MONTH defined_for = StateCode.NH - reference = "https://www.law.cornell.edu/regulations/new-hampshire/N-H-Admin-Code-SS-He-C-6910.06" + reference = "https://gc.nh.gov/rules/state_agencies/he-c6900.html" def formula(spm_unit, period, parameters): p = parameters(period).gov.states.nh.dhhs.ccap.income countable_income = spm_unit("nh_ccap_countable_income", period) # He-C 6910.06(b): gross income <= 85% SMI - smi = spm_unit("hhs_smi", period) - income_limit = smi * p.income_limit_smi_rate + size = spm_unit("spm_unit_size", period.this_year) + state = spm_unit.household("state_code_str", period.this_year) + annual_smi = smi(size, state, period, parameters) + income_limit = monthly_income_limit( + annual_smi * p.income_limit_smi_rate, countable_income.dtype + ) income_test = countable_income <= income_limit # He-C 6910.06(a)(1): TANF recipients automatically qualify tanf_eligible = spm_unit("is_tanf_enrolled", period) diff --git a/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.py b/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.py index 0a619e764e2..4eb1a4c86b9 100644 --- a/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.py +++ b/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_cost_share.py @@ -1,4 +1,8 @@ from policyengine_us.model_api import * +from policyengine_us.variables.gov.hhs.tax_unit_fpg import fpg +from policyengine_us.variables.gov.states.nh.dhhs.ccap.nh_ccap_countable_income import ( + monthly_income_limit, +) class nh_ccap_cost_share(Variable): @@ -13,13 +17,28 @@ class nh_ccap_cost_share(Variable): "https://www.dhhs.nh.gov/sr_htm/html/sr_24-08_dated_01_24.htm", ) - def formula(spm_unit, period, parameters): + def formula_2024(spm_unit, period, parameters): p = parameters(period).gov.states.nh.dhhs.ccap.cost_share countable_income = spm_unit("nh_ccap_countable_income", period) - fpg = spm_unit("spm_unit_fpg", period) + size = spm_unit("spm_unit_size", period.this_year) + state_group = spm_unit.household("state_group_str", period.this_year) + # The new poverty guideline applies from July 1. + guideline_date = period.start.offset(-p.fpg_lag_months, MONTH) + annual_fpg = fpg(size, state_group, guideline_date, parameters) - fpg_ratio = where(fpg > 0, countable_income / fpg, 0) - income_based_share = ( - countable_income * p.income_share_rate.calc(fpg_ratio) / p.weeks_per_month + annual_income = countable_income.astype(np.float64) * MONTHS_IN_YEAR + fpg_ratio = where(annual_fpg > 0, annual_income / max_(annual_fpg, 1), 0) + + # Income at a published threshold stays in the lower step. + thresholds = set( + p.weekly_flat_amount.thresholds + p.income_share_rate.thresholds ) - return p.weekly_flat_amount.calc(fpg_ratio) + income_based_share + for threshold in thresholds: + limit = monthly_income_limit(annual_fpg * threshold, countable_income.dtype) + fpg_ratio = where( + countable_income <= limit, min_(fpg_ratio, threshold), fpg_ratio + ) + + income_share_rate = p.income_share_rate.calc(fpg_ratio, right=True) + flat_amount = p.weekly_flat_amount.calc(fpg_ratio, right=True) + return flat_amount + countable_income * income_share_rate / p.weeks_per_month diff --git a/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.py b/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.py index ee286b25658..1a01c35f701 100644 --- a/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.py +++ b/policyengine_us/variables/gov/states/nh/dhhs/ccap/nh_ccap_countable_income.py @@ -1,6 +1,13 @@ from policyengine_us.model_api import * +def monthly_income_limit(annual_limit, dtype): + # Monthly income can be reported directly or prorated from annual inputs. + monthly_limit = (annual_limit / MONTHS_IN_YEAR).astype(dtype) + prorated_limit = annual_limit.astype(dtype) / MONTHS_IN_YEAR + return max_(monthly_limit, prorated_limit) + + class nh_ccap_countable_income(Variable): value_type = float entity = SPMUnit @@ -8,6 +15,27 @@ class nh_ccap_countable_income(Variable): definition_period = MONTH unit = USD defined_for = StateCode.NH - reference = "https://www.law.cornell.edu/regulations/new-hampshire/N-H-Admin-Code-SS-He-C-6910.06" + reference = ( + "https://gc.nh.gov/rules/state_agencies/he-c6900.html", + "https://gc.nh.gov/rsa/html/XII/167/167-78.htm", + "https://gc.nh.gov/rsa/html/XII/167/167-80.htm", + ) - adds = "gov.states.nh.dhhs.ccap.income.countable_income.sources" + def formula_2024(spm_unit, period, parameters): + p = parameters(period).gov.states.nh.dhhs.ccap.income.countable_income + person = spm_unit.members + year = period.this_year + # K-12 attendance at ages 18 and 19 represents secondary school. + in_school = person("is_in_k12_school", year) | person( + "is_in_secondary_school", year + ) + dependent_student = ( + person("is_tax_unit_dependent", year) + & (person("age", year) < p.dependent_student_age_limit) + & in_school + & person("is_full_time_student", year) + ) + earnings = add(person, period, p.earned_sources) + return add(spm_unit, period, p.sources) + spm_unit.sum( + where(dependent_student, 0, earnings) + )