From a24d154ffab77a42a3db67073a729f3c41316730 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 07:28:31 +0000 Subject: [PATCH] Round Vermont Reach Up grants and apply the minimum payment Round the monthly payment down to a whole dollar and withhold grants below the minimum while preserving eligibility. Co-Authored-By: GPT-6.2 Sol --- ...up-whole-dollar-and-minimum-grant.fixed.md | 1 + .../states/vt/dcf/reach_up/minimum_grant.yaml | 14 ++ .../states/vt/dcf/reach_up/integration.yaml | 43 +++--- .../states/vt/dcf/reach_up/vt_reach_up.yaml | 126 +++++++++++++++++- .../gov/states/vt/dcf/reach_up/vt_reach_up.py | 12 +- 5 files changed, 171 insertions(+), 25 deletions(-) create mode 100644 changelog.d/vt-reach-up-whole-dollar-and-minimum-grant.fixed.md create mode 100644 policyengine_us/parameters/gov/states/vt/dcf/reach_up/minimum_grant.yaml diff --git a/changelog.d/vt-reach-up-whole-dollar-and-minimum-grant.fixed.md b/changelog.d/vt-reach-up-whole-dollar-and-minimum-grant.fixed.md new file mode 100644 index 00000000000..a810edc4b69 --- /dev/null +++ b/changelog.d/vt-reach-up-whole-dollar-and-minimum-grant.fixed.md @@ -0,0 +1 @@ +Round Vermont Reach Up monthly grants down to whole dollars and withhold grants below $10 while preserving eligibility. diff --git a/policyengine_us/parameters/gov/states/vt/dcf/reach_up/minimum_grant.yaml b/policyengine_us/parameters/gov/states/vt/dcf/reach_up/minimum_grant.yaml new file mode 100644 index 00000000000..abaca29601f --- /dev/null +++ b/policyengine_us/parameters/gov/states/vt/dcf/reach_up/minimum_grant.yaml @@ -0,0 +1,14 @@ +description: Vermont withholds monthly Reach Up grants below this amount for households without parent share payments. + +values: + 2020-02-01: 10 + +metadata: + unit: currency-USD + period: month + label: Vermont Reach Up minimum grant + reference: + - title: "Vermont DCF Reach Up Eligibility Rules, Rule 2242(b) #page 56-57" + href: https://outside.vermont.gov/dept/DCF/Shared%20Documents/ESD/Rules/2200-Reach-Up.pdf#page=56 + - title: "Vermont DCF Bulletin 20-02, Procedure P-2230C #page 1,47" + href: https://outside.vermont.gov/dept/DCF/Shared%20Documents/ESD/Rules-Adopted/B20-02.pdf#page=1 diff --git a/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/integration.yaml index 1d414ce48f8..49d80c65d37 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/integration.yaml @@ -1,5 +1,6 @@ # Vermont TANF (Reach Up) Integration Tests. -# Tests the complete benefit calculation pipeline. +# Tests the complete benefit calculation pipeline. Rule 2242 rounds +# the monthly grant down to a whole dollar. # Payment standard formula per Procedure P-2230A: # (basic needs + housing + special housing allowance) x 0.496 ratable. # Per Rule 2244.3, SHA = min(housing_cost - housing_max, $90), payable @@ -64,8 +65,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $856.096 - $487.50 = $368.60 - vt_reach_up: 368.60 + # $856.096 - $487.50 = $368.596, rounded down to $368. + vt_reach_up: 368 - name: Case 2, family of 3 Chittenden with no income. period: 2024-01 @@ -123,8 +124,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $880.896 - $0 = $880.90 (full benefit) - vt_reach_up: 880.90 + # $880.896 - $0 = $880.896, rounded down to $880. + vt_reach_up: 880 - name: Case 3, single parent with child support and earnings. period: 2024-01 @@ -179,8 +180,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $665.632 - $162.50 = $503.13 - vt_reach_up: 503.13 + # $665.632 - $162.50 = $503.132, rounded down to $503. + vt_reach_up: 503 - name: Case 4, two-parent family with higher earnings. period: 2024-01 @@ -244,8 +245,8 @@ # Income below payment standard - now eligible! vt_reach_up_eligible: true - # Benefit: $976.128 - $862.50 = $113.63 - vt_reach_up: 113.63 + # $976.128 - $862.50 = $113.628, rounded down to $113. + vt_reach_up: 113 - name: Case 5, family of 5 Chittenden with mixed income. period: 2024-01 @@ -316,8 +317,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $1,127.408 - $537.50 = $589.91 - vt_reach_up: 589.91 + # $1,127.408 - $537.50 = $589.908, rounded down to $589. + vt_reach_up: 589 - name: Case 6, pregnant woman with no children. period: 2024-01 @@ -362,8 +363,8 @@ # Eligible: true (pregnant women may qualify) vt_reach_up_eligible: true - # Benefit: $517.824 - $0 = $517.82 - vt_reach_up: 517.82 + # $517.824 - $0 = $517.824, rounded down to $517. + vt_reach_up: 517 - name: Case 7, benefit just above minimum threshold. period: 2024-01 @@ -417,8 +418,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $665.632 - $412.50 = $253.13 - vt_reach_up: 253.13 + # $665.632 - $412.50 = $253.132, rounded down to $253. + vt_reach_up: 253 - name: Case 8, two-parent family both working. period: 2024-01 @@ -479,8 +480,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $856.096 - $450 = $406.10 - vt_reach_up: 406.10 + # $856.096 - $450 = $406.096, rounded down to $406. + vt_reach_up: 406 - name: Case 9, large household size 10 Chittenden. period: 2024-01 @@ -573,8 +574,8 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $1,721.12 - $0 = $1,721.12 (full benefit) - vt_reach_up: 1_721.12 + # $1,721.12 - $0 = $1,721.12, rounded down to $1,721. + vt_reach_up: 1_721 - name: Case 10, two-parent family with child care expenses that are not deducted. period: 2024-01 @@ -645,5 +646,5 @@ # Eligible: true vt_reach_up_eligible: true - # Benefit: $856.096 - $450 = $406.10 - vt_reach_up: 406.10 + # $856.096 - $450 = $406.096, rounded down to $406. + vt_reach_up: 406 diff --git a/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/vt_reach_up.yaml b/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/vt_reach_up.yaml index b42a0058cff..ee399730d47 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/vt_reach_up.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/vt/dcf/reach_up/vt_reach_up.yaml @@ -1,5 +1,5 @@ # Vermont TANF Benefit Calculation -# Formula: Benefit = max(Payment Standard - Countable Income, 0) +# From February 2020, round the grant down and withhold payments below $10. # Source: 33 V.S.A. Section 1103, Rule 2242 - name: Eligible with no income @@ -20,8 +20,8 @@ vt_reach_up_payment_standard: 709 vt_reach_up_countable_income: 487.5 output: - # $709 - $487.50 = $221.50 - vt_reach_up: 221.5 + # $709 - $487.50 = $221.50, rounded down to $221. + vt_reach_up: 221 - name: Ineligible period: 2024-01 @@ -43,3 +43,123 @@ output: # max($709 - $800, 0) = $0 vt_reach_up: 0 + +- name: Round down the grant for an eight-person household + period: 2026-01 + input: + people: + parent: + age: 32 + immigration_status: CITIZEN + pre_subsidy_rent: 7_200 + child1: + age: 8 + child2: + age: 9 + child3: + age: 10 + child4: + age: 11 + child5: + age: 12 + child6: + age: 13 + child7: + age: 14 + households: + home: + members: [parent, child1, child2, child3, child4, child5, child6, child7] + state_code: VT + county: WASHINGTON_COUNTY_VT + output: + # $600 rent gives $400 housing and $90 special housing. + # ($2,458 + $400 + $90) x 0.496 = $1,462.208. + vt_reach_up_payment_standard: 1_462.208 + vt_reach_up_countable_income: 0 + vt_reach_up_eligible: true + # $1,462.208 - $0 rounds down to $1,462. + vt_reach_up: 1_462 + +- name: Withhold a nine-dollar grant and keep the household eligible + period: 2026-01 + input: + people: + parent: + age: 32 + immigration_status: CITIZEN + employment_income_before_lsr: 12_000 + taxable_pension_income: 1_482 + pre_subsidy_rent: 3_696 + child: + age: 8 + households: + home: + members: [parent, child] + state_code: VT + county: WASHINGTON_COUNTY_VT + output: + # ($942 + $308) x 0.496 = $620. + vt_reach_up_payment_standard: 620 + # ($1,000 - $350) x 0.75 = $487.50. Pension adds $123.50. + vt_reach_up_countable_income: 611 + vt_reach_up_eligible: true + # $620 - $611 = $9, below the $10 minimum. + vt_reach_up: 0 + +- name: Pay ten dollars at the minimum and withhold grants below it + period: 2026-01 + input: + age: 30 + state_code: VT + immigration_status: CITIZEN + is_demographic_tanf_eligible: + 2026-01: true + 2026-02: true + 2026-03: true + 2026-04: true + vt_reach_up_payment_standard: + 2026-01: 620 + 2026-02: 620 + 2026-03: 620 + 2026-04: 620 + vt_reach_up_countable_income: + 2026-01: 610 + 2026-02: 610.01 + 2026-03: 619 + 2026-04: 620 + output: + vt_reach_up_eligible: + 2026-01: true + 2026-02: true + 2026-03: true + 2026-04: false + vt_reach_up: + # The $10 difference is payable. + 2026-01: 10 + # The $9.99 difference rounds down to $9, below the minimum. + 2026-02: 0 + # The $1 difference is below the minimum. + 2026-03: 0 + # Income equals the payment standard. + 2026-04: 0 + +- name: Preserve an exact whole-dollar grant at the start of rounding + period: 2020-01 + absolute_error_margin: 0.00001 + input: + state_code: VT + vt_reach_up_eligible: + 2020-01: true + 2020-02: true + vt_reach_up_payment_standard: + 2020-01: 1_024.50 + 2020-02: 1_024.20 + vt_reach_up_countable_income: + 2020-01: 404.25 + 2020-02: 404.20 + output: + vt_reach_up: + # $1,024.50 - $404.25 = $620.25 before the documented rule. + 2020-01: 620.25 + # $1,024.20 - $404.20 = $620.00, despite float32 error. + 2020-02: 620 diff --git a/policyengine_us/variables/gov/states/vt/dcf/reach_up/vt_reach_up.py b/policyengine_us/variables/gov/states/vt/dcf/reach_up/vt_reach_up.py index e3cadedddef..2eaa65c72d2 100644 --- a/policyengine_us/variables/gov/states/vt/dcf/reach_up/vt_reach_up.py +++ b/policyengine_us/variables/gov/states/vt/dcf/reach_up/vt_reach_up.py @@ -9,7 +9,10 @@ class vt_reach_up(Variable): definition_period = MONTH reference = ( "https://legislature.vermont.gov/statutes/fullchapter/33/011", - "https://www.law.cornell.edu/regulations/vermont/13-220-Code-Vt-R-13-170-220-X", + # PDF pages 56-57, Rule 2242. + "https://outside.vermont.gov/dept/DCF/Shared%20Documents/ESD/Rules/2200-Reach-Up.pdf#page=56", + # PDF pages 1, 43, 47. + "https://outside.vermont.gov/dept/DCF/Shared%20Documents/ESD/Rules-Adopted/B20-02.pdf#page=43", ) defined_for = "vt_reach_up_eligible" @@ -18,3 +21,10 @@ def formula(spm_unit, period, parameters): countable_income = spm_unit("vt_reach_up_countable_income", period) benefit = max_(payment_standard - countable_income, 0) return min_(benefit, payment_standard) + + def formula_2020_02_01(spm_unit, period, parameters): + p = parameters(period).gov.states.vt.dcf.reach_up + benefit = vt_reach_up.formula(spm_unit, period, parameters) + # Round to cents first so float32 error cannot reduce a whole-dollar grant. + whole_dollar_benefit = np.floor(np.round(benefit, 2)) + return where(whole_dollar_benefit >= p.minimum_grant, whole_dollar_benefit, 0)