Repository navigation
Share one HHS SMI helper for LIHEAP income limits - #10019
Merged
Merged
Conversation
Add smi_size_factor() and liheap_smi_limit() to hhs_smi.py and have smi() use the size factor. Mississippi, Maryland and New Jersey LIHEAP read the 60% SMI limit from the shared helper, and Colorado CCAP reads smi() at its October date instead of repeating the size adjustment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hua7450
marked this pull request as ready for review
October 9, 2026 04:08
This was referenced Oct 12, 2026
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10005
What and why
Mississippi, Maryland and New Jersey LIHEAP each computed the HHS 60% state median income (SMI) limit with their own copy of the household-size factor and rounding. Colorado CCAP repeated the factor too. This PR moves those calculations into
policyengine_us/variables/gov/hhs/hhs_smi.py:smi_size_factor(unit_size, period, parameters)returns the 45 CFR 96.85(b) share of the four-person SMI.smi()now calls it.liheap_smi_limit(unit_size, state, rate, period, parameters)floors the rate times the four-person SMI, multiplies by the size factor, and floors again. HHS describes the multiplication in its footnote (LIHEAP IM 2025-02, Attachment 4) but gives no rounding order; this floor order reproduces the published tables. Callers that need a prior year's SMI pass that date asperiod.ms_liheap_income_limitliheap_smi_limit; keeps itssize > 0guardmd_meap_income_limitliheap_smi_limitfor sizes 11+nj_liheap_income_limitliheap_smi_limitfor each table size; keeps its half-up monthly rounding and per-member stepco_ccap_smismi()at its October date, then divides by 12NJ and MD merged after #10005 was filed, so the issue does not list them; they ran the same floor-then-floor calculation. Georgia (#9968), Florida (#9969) and Ohio (#9975) switch to the helper in their own PRs.
Behavior
The PR adds no parameters and changes no test expectations.
additional_person_threshold(6), which matches for every unit with at least one person.smi() / four-person SMI. The helper uses the factor directly. A comparison over every state, every SMI date inamount.yamland sizes 1-20 (14,540 cases) found no NJ or MD difference. The direct factor matched exact rational arithmetic in all 14,540 cases. The division route was $1 low in 9 other-state cases (for example IL FFY2022 size 10) from floating-point error.Test plan
smi()consumer tests.ruff formatandruff checkon the changed fileschangelog.d/axiom: n/a: refactor with no policy or parameter change
🤖 Generated with Claude Code