diff --git a/changelog.d/nm-premium-assistance-exact-fpl-ratio.fixed.md b/changelog.d/nm-premium-assistance-exact-fpl-ratio.fixed.md new file mode 100644 index 00000000000..af45ab6addd --- /dev/null +++ b/changelog.d/nm-premium-assistance-exact-fpl-ratio.fixed.md @@ -0,0 +1 @@ +Decide New Mexico Premium Assistance's income edges on the exact ratio of ACA MAGI to `aca_fpg`, the poverty line the federal credit uses, instead of the truncated `aca_magi_fraction`. Incomes from 400.003% to 400.994% of the poverty line were in neither component (the base program's federal gate ends at 400%, and the Middle Income Household gate needed a truncated fraction above 4.00); they now qualify as Middle Income Households (Addendum 1: "above 400% of the FPL"). The PY2026 10% benchmark gross-up no longer applies from 200.003% to 200.994% ("up to 200% FPL"), and the base program's 400% ceiling holds on its own under a reform that extends the federal credit. diff --git a/policyengine_us/parameters/gov/states/nm/hca/premium_assistance/fpl_limit.yaml b/policyengine_us/parameters/gov/states/nm/hca/premium_assistance/fpl_limit.yaml index cb363a4f71d..7a47365371b 100644 --- a/policyengine_us/parameters/gov/states/nm/hca/premium_assistance/fpl_limit.yaml +++ b/policyengine_us/parameters/gov/states/nm/hca/premium_assistance/fpl_limit.yaml @@ -3,6 +3,8 @@ values: # Dual use: this ceiling is the base-program cutoff via <= (units at or below # 400% FPL qualify for base assistance) and simultaneously the Middle Income # Household floor via > (units above 400% FPL route to the MIH component). + # Both compare the exact ratio of ACA MAGI to aca_fpg, not the truncated + # aca_magi_fraction, so every income is in exactly one component. # PY2027 uses the same 400% ceiling per the FINAL PY2027 MAP Manual (HCA, # issued 2026-06-16), Table 1 (p.4) and the flat 8.5% cap at >=400% FPL (p.4). 2026-01-01: 4 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/integration.yaml index cd2fa69826e..407a31ee4e4 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/integration.yaml @@ -12,7 +12,7 @@ # each scenario asserts the intermediate values so a reviewer can follow the # arithmetic: # target% = NM schedule keyed on aca_magi_fraction (base band only) -# benchmark = slcsp_annual * (1.1 if aca_magi_fraction <= 2.0 else 1.0) +# benchmark = slcsp_annual * (1.1 if aca_magi / aca_fpg <= 2.0 else 1.0) # base amount = max(0, benchmark - aca_ptc - target% * aca_magi) # MIH amount = max(0, slcsp_annual - aca_ptc - 0.085 * aca_magi) # @@ -35,6 +35,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 22_500 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 1.50 slcsp: 6_000 aca_ptc: 3_500 @@ -128,6 +130,8 @@ members: [person1, person2, person3, person4] tax_unit_is_filer: true aca_magi: 93_900 + # The case's arithmetic assumes a $31,300 prior-year guideline. + aca_fpg: 31_300 aca_magi_fraction: 3.00 slcsp: 18_000 aca_ptc: 8_000 @@ -242,7 +246,7 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi: 39_125 + aca_magi: 37_650 # 250% of the 2024 one-person guideline ($15,060) aca_magi_fraction: 2.50 slcsp: 6_000 aca_ptc: 2_500 @@ -271,6 +275,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 39_000 + # The case's arithmetic assumes a $15,600 prior-year guideline. + aca_fpg: 15_600 aca_magi_fraction: 2.50 slcsp: 0 aca_ptc: 0 @@ -300,6 +306,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 39_125 + # Pinned to the 2025 guideline so the inputs match the PY2026 Scenario 3. + aca_fpg: 15_650 aca_magi_fraction: 2.50 slcsp: 6_000 aca_ptc: 2_500 @@ -316,10 +324,11 @@ - name: Scenario 11, MIH couple with one premium-payer (base gate vs MIH gate). # No member is is_aca_ptc_eligible -> base band fails. person1 pays_aca_premium # so tax_unit.any(pays_aca_premium) is true and filing is joint (not separate) - # -> MIH eligible. magi_frac 4.20 > 4.0. + # -> MIH eligible. 420% of the 2025 two-person guideline ($21,150) is 88_830; + # ratio 4.20 > 4.0. # target% schedule clamps to the top band -> 0.085 (unused in MIH; MIH uses the - # flat 0.085 mih.rate). amount = max(0, 12_000 - 0 - 0.085*66_000) - # = 12_000 - 5_610 = 6_390. + # flat 0.085 mih.rate). amount = max(0, 12_000 - 0 - 0.085*88_830) + # = 12_000 - 7_550.55 = 4_449.45. period: 2026 absolute_error_margin: 0.01 input: @@ -339,7 +348,7 @@ members: [person1, person2] filing_status: JOINT tax_unit_is_filer: true - aca_magi: 66_000 + aca_magi: 88_830 aca_magi_fraction: 4.20 slcsp: 12_000 aca_ptc: 0 @@ -351,7 +360,7 @@ nm_premium_assistance_eligible: false nm_premium_assistance_mih_eligible: true nm_premium_assistance_target_contribution_percentage: 0.085 - nm_premium_assistance: 6_390 + nm_premium_assistance: 4_449.45 # ---- Derived-from-raw-income scenario ---- # Unlike every scenario above, this one does NOT inject aca_magi, @@ -442,7 +451,8 @@ nm_premium_assistance: 2_600 - name: Scenario 14, exactly 200% FPL in 2027 -> gross-up NOT applied (strict <). - # magi_frac 2.00 is NOT < 2.0 in PY2027, so the gross-up is off and the plain + # 200% of the 2026 one-person guideline ($15,960), the prior year for 2027, is + # 31_920. The ratio 2.00 is NOT < 2.0 in PY2027, so the gross-up is off and the plain # benchmark applies. amount = 6_000 - 4_000 = 2_000. Same inputs as Scenario 13 # except the year; the 600 drop is exactly the withdrawn 10% gross-up. period: 2027 @@ -456,7 +466,7 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi: 31_300 + aca_magi: 31_920 aca_magi_fraction: 2.00 slcsp: 6_000 aca_ptc: 4_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance.yaml b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance.yaml index a604bc63743..faf42b851da 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance.yaml @@ -10,7 +10,7 @@ # the YEAR period sets the annual total, so the values below are annual SLCSP. # # Base band, target_pct from the NM schedule keyed on aca_magi_fraction: -# benchmark = slcsp_annual * (1.1 if aca_magi_fraction <= 2.0 else 1.0) +# benchmark = slcsp_annual * (1.1 if aca_magi / aca_fpg <= 2.0 else 1.0) # amount = max(0, benchmark - aca_ptc - target_pct * aca_magi) # The 1.1 gross-up applies ONLY at or below 200% FPL (PY2026, inclusive) and # does NOT change the federal APTC. @@ -75,8 +75,9 @@ # ---- Base band: gross-up OFF (>200% FPL) ---- - name: Case 3, just above 200% FPL (2.01), no gross-up, target ~0.04%. - # benchmark = 6_000 (magi_frac 2.01 > 2.0). target_pct 0.0004. - # amount = max(0, 6_000 - 3_000 - 0.0004*30_000) = 6_000 - 3_000 - 12 = 2_988. + # 201% of the 2025 one-person guideline ($15,650) is 31_456.50. + # benchmark = 6_000 (ratio 2.01 > 2.0). target_pct 0.0004. + # amount = max(0, 6_000 - 3_000 - 0.0004*31_456.50) = 6_000 - 3_000 - 12.58 = 2_987.42. period: 2026 absolute_error_margin: 0.01 input: @@ -88,7 +89,7 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi: 30_000 + aca_magi: 31_456.50 aca_magi_fraction: 2.01 slcsp: 6_000 aca_ptc: 3_000 @@ -97,7 +98,7 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 2_988 + nm_premium_assistance: 2_987.42 - name: Case 4, 300% FPL, target 5%, no gross-up. # benchmark = 9_000. target_pct 0.05. term = 0.05*45_000 = 2_250. @@ -114,6 +115,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 45_000 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 3.00 slcsp: 9_000 aca_ptc: 4_000 @@ -139,6 +142,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 60_000 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 4.00 slcsp: 10_000 aca_ptc: 4_000 @@ -165,6 +170,8 @@ tax_unit: members: [person1] aca_magi: 39_000 + # The case's arithmetic assumes a $15,600 prior-year guideline. + aca_fpg: 15_600 aca_magi_fraction: 2.50 slcsp: 6_000 aca_ptc: 6_000 @@ -224,6 +231,8 @@ members: [person1] filing_status: SINGLE aca_magi: 120_000 + # The case's arithmetic assumes a $24,000 prior-year guideline. + aca_fpg: 24_000 aca_magi_fraction: 5.00 slcsp: 8_000 aca_ptc: 0 @@ -236,7 +245,8 @@ - name: Case 9, MIH filer using married-filing-separately is ineligible -> $0. # Federal PTC criteria (except income) exclude separate filers; MIH inherits - # that exclusion, so despite pays_aca_premium the amount is 0. + # that exclusion, so despite pays_aca_premium the amount is 0. 420% of the 2025 + # two-person guideline ($21,150) is 88_830. period: 2026 absolute_error_margin: 0.01 input: @@ -253,7 +263,7 @@ tax_unit: members: [person1, person2] filing_status: SEPARATE - aca_magi: 70_000 + aca_magi: 88_830 aca_magi_fraction: 4.20 slcsp: 12_000 aca_ptc: 0 @@ -278,6 +288,8 @@ tax_unit: members: [person1] aca_magi: 39_000 + # The case's arithmetic assumes a $15,600 prior-year guideline. + aca_fpg: 15_600 aca_magi_fraction: 2.50 slcsp: 6_000 aca_ptc: 3_000 @@ -299,7 +311,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 39_000 + aca_magi: 37_650 # 250% of the 2024 one-person guideline ($15,060) aca_magi_fraction: 2.50 slcsp: 6_000 aca_ptc: 3_000 @@ -351,7 +363,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 22_000 + aca_magi: 23_475 # 150% of the 2025 one-person guideline ($15,650) aca_magi_fraction: 1.50 slcsp: 0 aca_ptc: 0 @@ -376,7 +388,7 @@ tax_unit: members: [person1] filing_status: SINGLE - aca_magi: 70_000 + aca_magi: 70_425 # 450% of the 2025 one-person guideline ($15,650) aca_magi_fraction: 4.50 slcsp: 0 aca_ptc: 0 @@ -406,6 +418,8 @@ filing_status: SINGLE tax_unit_is_filer: true aca_magi: 60_000 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 4.00 slcsp: 10_000 aca_ptc: 0 @@ -419,8 +433,9 @@ - name: Case 16, base->MIH handoff just above 400% FPL (4.01) routes to MIH. # magi_frac 4.01 > 4.0 -> base ineligible, MIH eligible. is_aca_ptc_eligible # is false above 400% FPL, so MIH uses pays_aca_premium & non-separate filing. - # MIH amount = max(0, 10_000 - 0 - 0.085*60_150) = max(0, 10_000 - 5_112.75) - # = 4_887.25. Same 8.5% rate as the base 300-400% top, so the handoff is + # 401% of the 2025 one-person guideline ($15,650) is 62_756.50. + # MIH amount = max(0, 10_000 - 0 - 0.085*62_756.50) = max(0, 10_000 - 5_334.30) + # = 4_665.70. Same 8.5% rate as the base 300-400% top, so the handoff is # nearly continuous here; the routing branch is what changes. period: 2026 absolute_error_margin: 0.01 @@ -436,7 +451,7 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi: 60_150 + aca_magi: 62_756.50 aca_magi_fraction: 4.01 slcsp: 10_000 aca_ptc: 0 @@ -445,13 +460,13 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 4_887.25 + nm_premium_assistance: 4_665.70 - name: Case 17, MIH unit where only one member pays the ACA premium is eligible. # No member is is_aca_ptc_eligible (base gate fails), but person1 pays_aca_premium # so tax_unit.any(pays_aca_premium) is true -> MIH gate passes. Non-separate - # filing. magi_frac 4.20 > 4.0. - # MIH amount = max(0, 12_000 - 0 - 0.085*66_000) = max(0, 12_000 - 5_610) = 6_390. + # filing. 420% of the 2025 two-person guideline ($21,150) is 88_830; ratio 4.20 > 4.0. + # MIH amount = max(0, 12_000 - 0 - 0.085*88_830) = max(0, 12_000 - 7_550.55) = 4_449.45. # Demonstrates the base gate (needs is_aca_ptc_eligible) vs MIH gate # (needs pays_aca_premium) difference within one household. period: 2026 @@ -473,7 +488,7 @@ members: [person1, person2] filing_status: JOINT tax_unit_is_filer: true - aca_magi: 66_000 + aca_magi: 88_830 aca_magi_fraction: 4.20 slcsp: 12_000 aca_ptc: 0 @@ -482,14 +497,17 @@ members: [person1, person2] state_code: NM output: - nm_premium_assistance: 6_390 + nm_premium_assistance: 4_449.45 - name: Case 18, negative MAGI in the base band is clamped to zero (guarded). - # magi_frac 3.00 -> target% 0.05, no gross-up, benchmark = 9_000. + # aca_magi_fraction is supplied at 3.00 only so the target percentage is + # nonzero (0.05) and the clamp matters. Eligibility and the gross-up read the + # exact ratio, max(-10_000, 0) / FPG = 0, which is up to 200% FPL, so the PY2026 + # gross-up applies: benchmark = 9_000 * 1.1 = 9_900. # income is clamped to max(-10_000, 0) = 0, so the target term is 0.05*0 = 0. - # amount = max(0, 9_000 - 4_000 - 0) = 5_000. Without the clamp the - # -target%*income term would ADD 500, inflating the top-up to 5_500 above the - # benchmark - aca_ptc residual (= 5_000); the income>=0 guard prevents that. + # amount = max(0, 9_900 - 4_000 - 0) = 5_900. Without the clamp the + # -target%*income term would ADD 500, inflating the top-up to 6_400 above the + # benchmark - aca_ptc residual (= 5_900); the income>=0 guard prevents that. period: 2026 absolute_error_margin: 0.01 input: @@ -510,7 +528,7 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 5_000 + nm_premium_assistance: 5_900 - name: Case 19, PY2027 carry-forward year pays the same base-band top-up. # Same schedule and parameters carry forward through PY2027. 300% FPL, target 5%, @@ -527,6 +545,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 45_000 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 3.00 slcsp: 9_000 aca_ptc: 4_000 @@ -558,6 +578,8 @@ members: [person1] tax_unit_is_filer: true aca_magi: 45_000 + # The case's arithmetic assumes a $15,000 prior-year guideline. + aca_fpg: 15_000 aca_magi_fraction: 3.00 slcsp: 9_000 aca_ptc: 4_000 @@ -586,7 +608,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi: 62_000 + aca_magi: 63_382.50 # 405% of the pinned $15,650 guideline + aca_fpg: 15_650 aca_magi_fraction: 4.05 slcsp: 10_000 aca_ptc: 0 @@ -603,11 +626,12 @@ # In the PY2026 baseline federal APTC is $0 above 400% FPL, so the - aca_ptc # term in the MIH branch is never exercised by any other case. Here aca_ptc is # injected non-zero (a reform-style input restoring APTC above 400% FPL) to - # drive the subtraction. magi_frac 4.50 > 4.0 -> MIH; no gross-up on MIH. - # amount = max(0, 10_000 - 2_000 - 0.085*70_000) - # = max(0, 10_000 - 2_000 - 5_950) = 2_050. + # drive the subtraction. 450% of the 2025 one-person guideline ($15,650) is + # 70_425; ratio 4.50 > 4.0 -> MIH; no gross-up on MIH. + # amount = max(0, 10_000 - 2_000 - 0.085*70_425) + # = max(0, 10_000 - 2_000 - 5_986.125) = 2_013.875. # Documents the reform-scenario behavior: the state subsidy nets any restored - # APTC (2_050 here vs 4_050 if the - aca_ptc term were dropped). + # APTC (2_013.875 here vs 4_013.875 if the - aca_ptc term were dropped). period: 2026 absolute_error_margin: 0.01 input: @@ -622,7 +646,7 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi: 70_000 + aca_magi: 70_425 aca_magi_fraction: 4.50 slcsp: 10_000 aca_ptc: 2_000 @@ -631,7 +655,7 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 2_050 + nm_premium_assistance: 2_013.875 # ---- Mid-bracket target interpolation (base band) ---- @@ -639,8 +663,9 @@ # magi_frac 2.75 lands mid-way in the 250-300% band (initial 2%, final 5%): # position = (2.75 - 2.5) / (3.0 - 2.5) = 0.5, so target% = 0.02 + 0.5*0.03 # = 0.035. No gross-up (2.75 > 2.0). benchmark = 8_000. - # amount = max(0, 8_000 - 1_000 - 0.035*43_000) - # = max(0, 8_000 - 1_000 - 1_505) = 5_495. + # 275% of the 2025 one-person guideline ($15,650) is 43_037.50. + # amount = max(0, 8_000 - 1_000 - 0.035*43_037.50) + # = max(0, 8_000 - 1_000 - 1_506.3125) = 5_493.6875. # Exercises the within-band searchsorted interpolation at a non-endpoint FPL, # complementing the band-endpoint cases (200/250/300/400% FPL) above. period: 2026 @@ -654,7 +679,7 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi: 43_000 + aca_magi: 43_037.50 aca_magi_fraction: 2.75 slcsp: 8_000 aca_ptc: 1_000 @@ -663,25 +688,27 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 5_495 + nm_premium_assistance: 5_493.6875 # ---- Derived 400%-FPL boundary pair (A10) ---- # These two cases do NOT inject aca_magi/aca_magi_fraction/is_aca_ptc_eligible; # they drive the whole federal ACA chain from raw employment_income for a single # NM filer in 2026 and inject only slcsp. The pair straddles the 400% FPL cliff: -# 62_700 -> ~4.00 (base band, MIH-ineligible) and 62_800 -> ~4.01 (base- -# ineligible, MIH-eligible). Above 400% FPL the federal APTC and the base target -# schedule both bind at the cap, so all three benefits round to 0 at 62_700. -# EXPECTED TO CHANGE once upstream #9264 lands (the aca_magi_fraction whole-% -# truncation fix): the exact fraction each wage maps to may shift by a cent of -# FPL, moving one case across the 4.00 boundary. +# 62_700 -> 4.00 truncated and 62_800 -> 4.01 truncated; both are base- +# ineligible, MIH-eligible on the exact ratio: 62_700 is 400.64% and 62_800 is +# 401.28% of $15,650, both "above 400% of the FPL" (Addendum 1). Truncation maps +# 62_700 to 4.00, which once left it in neither component. -- name: Case 24, derived single NM filer 2026 at ~400% FPL (base band, benefits 0). - # employment_income 62_700 derives aca_magi_fraction ~4.00; base-eligible but - # the 8.5% top-of-schedule target plus the derived federal APTC leave no state - # top-up. MIH-ineligible (not > 4.0). Paired with Case 25 across the cliff. - # May move when #9264 lands (aca_magi_fraction whole-% truncation fix). +- name: Case 24, derived single NM filer 2026 at 400.64% FPL is a Middle Income Household. + # employment_income 62_700 is 400.64% of the 2025 one-person guideline + # ($15,650); aca_magi_fraction truncates to 4.00. The federal credit stops above + # 400%, so the base program (which needs is_aca_ptc_eligible) does not apply. + # Addendum 1 covers income "above 400% of the FPL", decided on the exact ratio, + # so the household is MIH-eligible (main left it in neither component): + # MIH amount = max(0, 8_000 - 0 - 0.085*62_700) = 8_000 - 5_329.50 = 2_670.50. + # Paired with Case 25 across the cliff. period: 2026 + absolute_error_margin: 0.01 input: people: person1: @@ -698,13 +725,14 @@ members: [person1] state_code: NM output: - nm_premium_assistance: 0 + nm_premium_assistance_eligible: false + nm_premium_assistance_mih_eligible: true + nm_premium_assistance: 2_670.50 - name: Case 25, derived single NM filer 2026 at ~401% FPL (MIH-eligible). # employment_income 62_800 derives aca_magi_fraction ~4.01 -> base-ineligible, # MIH-eligible (> 4.0). The MIH 8.5% cap gives a small positive top-up against # the 8_000 benchmark. Paired with Case 24 across the 400% FPL cliff. - # May move when #9264 lands (aca_magi_fraction whole-% truncation fix). period: 2026 input: people: @@ -814,8 +842,9 @@ - name: Case 29, negative MAGI in the MIH band is clamped to zero (guarded mirror). # Base-band Case 18 covers the negative-income clamp for the base branch; this - # mirrors it for the MIH branch. magi_frac 4.50 > 4.0 -> MIH. income clamps to - # max(-20_000, 0) = 0, so the 0.085*income term is 0. + # mirrors it for the MIH branch. Negative MAGI is 0% of the guideline on the + # exact ratio, so MIH eligibility is supplied to reach the MIH amount's clamp. + # income clamps to max(-20_000, 0) = 0, so the 0.085*income term is 0. # amount = max(0, 10_000 - 0 - 0.085*0) = 10_000. Without the clamp the # -0.085*(-20_000) term would ADD 1_700 above the slcsp, inflating the cap. period: 2026 @@ -832,6 +861,7 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true + nm_premium_assistance_mih_eligible: true aca_magi: -20_000 aca_magi_fraction: 4.50 slcsp: 10_000 @@ -894,6 +924,141 @@ # top-up. Value is data-driven from the premium table. nm_premium_assistance: 2_645.60 +- name: Case 32, $31,300 (exactly 200% of the 2025 guideline) keeps the PY2026 gross-up. + # PY2026: "up to 200% FPL" (the next range starts at "200.01"); PY2027: "under + # 200% (< 200%)". Eligibility and a 0% target are supplied, so the amount shows + # only the gross-up: 6_000 * 1.1 - 4_000 = 2_600. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + tax_units: + tax_unit: + members: [person1] + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_300 + slcsp: 6_000 + aca_ptc: 4_000 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 2.00 + nm_premium_assistance: 2_600 + +- name: Case 33, $31,300.47 (200.003%) gets no PY2026 gross-up though truncated to 2.00. + # PY2026: "up to 200% FPL" (the next range starts at "200.01"); PY2027: "under + # 200% (< 200%)". Eligibility and a 0% target are supplied, so the amount shows + # only the gross-up: 6_000 - 4_000 = 2_000. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + tax_units: + tax_unit: + members: [person1] + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_300.47 + slcsp: 6_000 + aca_ptc: 4_000 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 2.00 + nm_premium_assistance: 2_000 + +- name: Case 34, $31,455.56 (200.994%) gets no PY2026 gross-up though truncated to 2.00. + # PY2026: "up to 200% FPL" (the next range starts at "200.01"); PY2027: "under + # 200% (< 200%)". Eligibility and a 0% target are supplied, so the amount shows + # only the gross-up: 6_000 - 4_000 = 2_000. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + tax_units: + tax_unit: + members: [person1] + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_455.56 + slcsp: 6_000 + aca_ptc: 4_000 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 2.00 + nm_premium_assistance: 2_000 + +- name: Case 35, $31,919 (199.994% of the 2026 guideline) keeps the PY2027 gross-up. + # PY2026: "up to 200% FPL" (the next range starts at "200.01"); PY2027: "under + # 200% (< 200%)". Eligibility and a 0% target are supplied, so the amount shows + # only the gross-up: 6_000 * 1.1 - 4_000 = 2_600. + period: 2027 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + tax_units: + tax_unit: + members: [person1] + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_919 + slcsp: 6_000 + aca_ptc: 4_000 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 1.99 + nm_premium_assistance: 2_600 + +- name: Case 36, $31,920 (exactly 200% of the 2026 guideline) gets no PY2027 gross-up. + # PY2026: "up to 200% FPL" (the next range starts at "200.01"); PY2027: "under + # 200% (< 200%)". Eligibility and a 0% target are supplied, so the amount shows + # only the gross-up: 6_000 - 4_000 = 2_000. + period: 2027 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + tax_units: + tax_unit: + members: [person1] + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_920 + slcsp: 6_000 + aca_ptc: 4_000 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 2.00 + nm_premium_assistance: 2_000 + - name: 2026 NM joint return with one claimable spouse (the claimable spouse is the head) period: 2026 absolute_error_margin: 0.01 @@ -1059,3 +1224,110 @@ output: # Neither spouse is in a federal tax family. nm_premium_assistance: 0 + +- name: Case 37, a joint return with one claimable spouse just above 200% of the one-person guideline gets no PY2026 gross-up. + # The claimable spouse is outside the section 36B tax family, so aca_fpg is + # the one-person guideline: 31_300.47 / 15_650 = 2.00003. Against the + # two-person guideline of the whole tax unit ($21,150) the ratio would be + # 1.48, inside the gross-up. No New Mexico source defines family size; this + # pins the model's use of aca_fpg. Eligibility and a 0% target are supplied, + # so the amount shows only the gross-up: 6_000 - 4_000 = 2_000. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + tax_unit_is_filer: true + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_300.47 + aca_ptc: 4_000 + households: + household: + members: [person_a, person_b] + state_code: NM + # Annual base: each adult has a 6,000 premium. + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nm_premium_assistance: 2_000 + +- name: Case 38, the same return at exactly 200% of the 2026 one-person guideline gets no PY2027 gross-up. + # 31_920 / 15_960 = 2.00, and PY2027 is strict ("under 200% (< 200%)"). + # Against the two-person guideline of the whole tax unit ($21,640) the ratio + # would be 1.48, inside the gross-up. 6_000 - 4_000 = 2_000. + # The adults have no earnings here, so the work requirement that starts in + # 2027 is switched off to keep them enrolled and the benchmark at 6_000. + period: 2027 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_medicaid_ineligible_due_to_work_requirement: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_medicaid_ineligible_due_to_work_requirement: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + tax_unit_is_filer: true + nm_premium_assistance_eligible: true + nm_premium_assistance_mih_eligible: false + nm_premium_assistance_target_contribution_percentage: 0 + aca_magi: 31_920 + aca_ptc: 4_000 + households: + household: + members: [person_a, person_b] + state_code: NM + # Annual base: each adult has a 6,000 premium. + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_fpg: 15_960 + nm_premium_assistance: 2_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.yaml index 4916b85758a..7f5be2b755c 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.yaml @@ -3,7 +3,7 @@ # Mexico, at least one tax-unit member is eligible for the federal ACA premium # tax credit (which embeds on-Marketplace enrollment, the MFS exclusion, and the # 100-400% FPL income test), the tax unit files a federal return, and ACA MAGI -# is at or below the 400% FPL limit. is_aca_ptc_eligible, aca_magi_fraction, and +# is at or below the 400% FPL limit. is_aca_ptc_eligible, aca_magi, aca_fpg, and # tax_unit_is_filer are supplied directly so the gate logic is tested in # isolation from the premium-data lookup. # The >400% FPL Middle Income Household (MIH) band is exercised through the @@ -21,7 +21,8 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -41,7 +42,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.05 + aca_magi: 40_500 + aca_fpg: 10_000 households: household: members: [person1] @@ -60,7 +62,8 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi_fraction: 4.00 + aca_magi: 40_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -78,7 +81,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -96,7 +100,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -114,7 +119,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -132,7 +138,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -154,7 +161,8 @@ tax_unit: members: [person1, person2] tax_unit_is_filer: true - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 households: household: members: [person1, person2] @@ -176,7 +184,8 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi_fraction: 0 + aca_magi: 0 + aca_fpg: 10_000 households: household: members: [person1] @@ -195,7 +204,8 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi_fraction: 3.99 + aca_magi: 39_900 + aca_fpg: 10_000 households: household: members: [person1] @@ -216,7 +226,8 @@ tax_unit: members: [person1] tax_unit_is_filer: true - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -236,7 +247,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -262,7 +274,8 @@ tax_unit_is_filer: false # Nor does it take up the federal credit, so it files no return to claim it. takes_up_aca_if_eligible: false - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -344,3 +357,138 @@ state_code: NM output: nm_premium_assistance_eligible: true + +- name: Case 14, $62,600 (exactly 400% of the 2025 guideline) is base-eligible. + # The PY2026 manual: "consumers with household income over 400% of the FPL do + # not qualify". is_aca_ptc_eligible is supplied to isolate the state ceiling, + # and because the federal credit's income scale excludes exactly 400% until + # PolicyEngine/policyengine-us#10312 lands. Derive it here once that merges. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + files_return_for_aca_ptc: true + aca_magi: 62_600 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_eligible: true + +- name: Case 15, $62,600.47 (400.003%) is base-ineligible though truncated to 4.00. + # The PY2026 manual: "consumers with household income over 400% of the FPL do + # not qualify". is_aca_ptc_eligible is supplied to isolate the state ceiling. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + files_return_for_aca_ptc: true + aca_magi: 62_600.47 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_eligible: false + +- name: Case 16, $62,755.56 (400.994%) is base-ineligible though truncated to 4.00. + # The PY2026 manual: "consumers with household income over 400% of the FPL do + # not qualify". is_aca_ptc_eligible is supplied to isolate the state ceiling. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + files_return_for_aca_ptc: true + aca_magi: 62_755.56 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_eligible: false + +- name: Case 17, a joint return with one claimable spouse at exactly 400% of the one-person guideline is base-eligible. + # The claimable spouse is outside the section 36B tax family, so aca_fpg is + # the one-person guideline: 62_600 / 15_650 = 4.00. No New Mexico source + # defines family size; this pins the model's use of aca_fpg. + # is_aca_ptc_eligible is supplied as in Case 14, until + # PolicyEngine/policyengine-us#10312 lands. + period: 2026 + input: + people: + person_a: + age: 30 + is_aca_ptc_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_aca_ptc_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + files_return_for_aca_ptc: true + aca_magi: 62_600 + households: + household: + members: [person_a, person_b] + state_code: NM + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nm_premium_assistance_eligible: true + +- name: Case 18, the same return just above 400% of the one-person guideline is base-ineligible. + # 62_600.47 / 15_650 = 4.00003 > 4. Against the two-person guideline of the + # whole tax unit ($21,150) the ratio would be 2.96, inside the ceiling. + period: 2026 + input: + people: + person_a: + age: 30 + is_aca_ptc_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_aca_ptc_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + files_return_for_aca_ptc: true + aca_magi: 62_600.47 + households: + household: + members: [person_a, person_b] + state_code: NM + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nm_premium_assistance_eligible: false diff --git a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.yaml index 4526bf7a316..64cfa7ce745 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.yaml @@ -3,8 +3,8 @@ # effect (PY2026-2027), at least one member is enrolled on the Marketplace # (pays_aca_premium, any-member), the unit does not file married-filing- # separately, the tax unit files a federal return, and ACA MAGI is ABOVE the -# 400% FPL limit (aca_magi_fraction > 4.0). pays_aca_premium, filing_status, -# and aca_magi_fraction are supplied directly so the gate logic is tested in +# 400% FPL limit (aca_magi / aca_fpg > 4.0). pays_aca_premium, filing_status, +# aca_magi, and aca_fpg are supplied directly so the gate logic is tested in # isolation from the premium-data lookup. Unlike the base gate this does NOT use # is_aca_ptc_eligible, whose embedded income test fails above 400% FPL. @@ -23,7 +23,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -46,7 +47,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -73,7 +75,8 @@ members: [person1, person2] filing_status: JOINT tax_unit_is_filer: true - aca_magi_fraction: 4.50 + aca_magi: 45_000 + aca_fpg: 10_000 households: household: members: [person1, person2] @@ -100,7 +103,8 @@ members: [person1, person2] filing_status: SEPARATE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1, person2] @@ -123,7 +127,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.00 + aca_magi: 40_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -146,7 +151,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.01 + aca_magi: 40_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -168,7 +174,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -191,7 +198,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -216,7 +224,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -242,7 +251,8 @@ members: [person1] filing_status: SINGLE tax_unit_is_filer: false - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -268,7 +278,8 @@ filing_status: SINGLE tax_unit_is_filer: false takes_up_aca_if_eligible: true - aca_magi_fraction: 4.20 + aca_magi: 42_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -276,6 +287,72 @@ output: nm_premium_assistance_mih_eligible: false +- name: Case 11, $62,600 (exactly 400% of the 2025 guideline) is not above 400%. + # Addendum 1, Section I.A(3): "Have a household income above 400% of the FPL." + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + filing_status: SINGLE + tax_unit_is_filer: true + aca_magi: 62_600 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_mih_eligible: false + +- name: Case 12, $62,600.47 (400.003%) is above 400% though truncated to 4.00. + # Addendum 1, Section I.A(3): "Have a household income above 400% of the FPL." + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + filing_status: SINGLE + tax_unit_is_filer: true + aca_magi: 62_600.47 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_mih_eligible: true + +- name: Case 13, $62,755.56 (400.994%) is above 400% though truncated to 4.00. + # Addendum 1, Section I.A(3): "Have a household income above 400% of the FPL." + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + filing_status: SINGLE + tax_unit_is_filer: true + aca_magi: 62_755.56 + households: + household: + members: [person1] + state_code: NM + output: + aca_magi_fraction: 4.00 + nm_premium_assistance_mih_eligible: true + - name: "2026 NM above 400% FPL for a tax family of one: the other spouse qualifies for the MIH component (the claimable spouse is the head)" period: 2026 absolute_error_margin: 0.01 @@ -402,3 +479,96 @@ output: # The Addendum requires every federal PTC criterion except income. nm_premium_assistance_mih_eligible: false + +- name: Case 14, a joint return with one claimable spouse at exactly 400% of the one-person guideline is not above 400%. + # The claimable spouse is outside the section 36B tax family, so aca_fpg is + # the one-person guideline: 62_600 / 15_650 = 4.00. No New Mexico source + # defines family size; this pins the model's use of aca_fpg. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 62_600 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NM + # Annual base: each adult has a 6,000 premium. + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nm_premium_assistance_mih_eligible: false + +- name: Case 15, the same return just above 400% of the one-person guideline is MIH-eligible. + # 62_600.47 / 15_650 = 4.00003 > 4. Against the two-person guideline of the + # whole tax unit ($21,150) the ratio would be 2.96, below the MIH floor. + # 6_000 - 0.085 * 62_600.47 = 678.96. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_medicaid_eligible: false + is_chip_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + is_basic_health_program_eligible: false + slcsp_age_curve_multiplier: 1 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 62_600.47 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NM + # Annual base: each adult has a 6,000 premium. + slcsp_age_0: 6000 + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nm_premium_assistance_mih_eligible: true + nm_premium_assistance: 678.96 diff --git a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance.py b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance.py index 877bbee18e6..bc22c07d5de 100644 --- a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance.py +++ b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance.py @@ -29,6 +29,12 @@ class nm_premium_assistance(Variable): "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/15a6c1dd-e12b-4ffb-95af-bb54262218f3/FINAL-PY26%20%20MAP%20Policy%20and%20Procedures%20Manual.pdf#page=5", "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/15a6c1dd-e12b-4ffb-95af-bb54262218f3/FINAL-PY26%20%20MAP%20Policy%20and%20Procedures%20Manual.pdf#page=6", "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/50c9a4d0-d5c8-48aa-8b9a-5c43e8fa23bc/Addendum%201_MAP%20P&P%20Middle%20Income%20Household.pdf#page=3", + # 8.401.2.7(G) NMAC defines the FPL. The rule in force is one HTML page; + # HCA's proposed amendment repeats the definition on PDF page 1. + "https://prod-rf-lambda.rtssaas.com/PublicFiles/d89c47bd0d70402dba89b03a22bda6d1/45b8668e-460f-45cd-804f-92ee3d442343/8.401.2.html", + "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/d3ee1d62-6f0f-4df7-b7fc-96a4c523ea89/08.401.0002_amended.pdf#page=1", + # 45 CFR 155.300(a): the Exchange's FPL. + "https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec155-300.pdf#page=2", ) def formula(tax_unit, period, parameters): @@ -42,17 +48,24 @@ def formula(tax_unit, period, parameters): # Middle Income Household component except for income). slcsp = add(tax_unit, period, ["aca_ptc_slcsp"]) aca_ptc = tax_unit("aca_ptc", period) - magi_frac = tax_unit("aca_magi_fraction", period) + # The exact ratio of income to the poverty line, not the truncated + # aca_magi_fraction, which maps 200.00%-200.99% to 2.00. + # nm_premium_assistance_eligible explains the choice of aca_fpg. + fpg = tax_unit("aca_fpg", period) + # Divide in float64: a float32 quotient can round a ratio just above + # a limit down onto it. + exact_magi_frac = income.astype(np.float64) / fpg # Base NMPA: gross up the benchmark by 10% up to the gross-up FPL limit, # subtract the federal APTC and the target contribution, floor at zero. - # PY2026 treats the 200% FPL limit as inclusive; PY2027 treats it as - # strict (below 200% FPL), toggled by benchmark_gross_up.boundary_inclusive. + # PY2026 treats the 200% FPL limit as inclusive ("up to 200% FPL"; the + # next range starts at "200.01"); PY2027 treats it as strict ("under + # 200% (< 200%)"), toggled by benchmark_gross_up.boundary_inclusive. limit = p.benchmark_gross_up.fpl_limit gross_up_applies = where( p.benchmark_gross_up.boundary_inclusive, - magi_frac <= limit, - magi_frac < limit, + exact_magi_frac <= limit, + exact_magi_frac < limit, ) gross_up = where(gross_up_applies, 1 + p.benchmark_gross_up.rate, 1) benchmark = slcsp * gross_up diff --git a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.py b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.py index 0ca623a510c..eae724b8a3a 100644 --- a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.py +++ b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_eligible.py @@ -14,6 +14,12 @@ class nm_premium_assistance_eligible(Variable): reference = ( "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/15a6c1dd-e12b-4ffb-95af-bb54262218f3/FINAL-PY26%20%20MAP%20Policy%20and%20Procedures%20Manual.pdf#page=4", "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/15a6c1dd-e12b-4ffb-95af-bb54262218f3/FINAL-PY26%20%20MAP%20Policy%20and%20Procedures%20Manual.pdf#page=6", + # 8.401.2.7(G) NMAC defines the FPL. The rule in force is one HTML page; + # HCA's proposed amendment repeats the definition on PDF page 1. + "https://prod-rf-lambda.rtssaas.com/PublicFiles/d89c47bd0d70402dba89b03a22bda6d1/45b8668e-460f-45cd-804f-92ee3d442343/8.401.2.html", + "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/d3ee1d62-6f0f-4df7-b7fc-96a4c523ea89/08.401.0002_amended.pdf#page=1", + # 45 CFR 155.300(a): the Exchange's FPL. + "https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec155-300.pdf#page=2", ) def formula(tax_unit, period, parameters): @@ -27,6 +33,22 @@ def formula(tax_unit, period, parameters): # (IRC 36B(a); aca_ptc does), so gate it explicitly here, as aca_ptc # does. is_filer = tax_unit("files_return_for_aca_ptc", period) - magi_frac = tax_unit("aca_magi_fraction", period) - income_eligible = magi_frac <= p.fpl_limit + # The PY2026 manual excludes "consumers with household income over + # 400% of the FPL". Test the exact ratio, not the truncated + # aca_magi_fraction: truncation maps 400.00%-400.99% to 4.00, which + # would admit incomes above 400%. + # 8.401.2.7(G) NMAC defines the FPL as the level HHS issues "for the + # applicable coverage year for the health insurance exchange". It names + # no guideline year, and no New Mexico source defines family size, so + # aca_fpg is a modeling choice on both points. Its prior-year guideline + # is the one 45 CFR 155.300(a) has the Exchange use: the most recently + # published when open enrollment starts. Its section 36B tax family + # follows the program's federal PTC criteria (8.401.2.8(C)(1)(b) NMAC) + # and leaves out a filer who can be claimed on another return. + magi = max_(tax_unit("aca_magi", period), 0) + fpg = tax_unit("aca_fpg", period) + # Divide in float64: a float32 quotient can round a ratio just above + # a limit down onto it. + exact_magi_frac = magi.astype(np.float64) / fpg + income_eligible = exact_magi_frac <= p.fpl_limit return in_effect & aptc_eligible & is_filer & income_eligible diff --git a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.py b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.py index 88cd69c0278..66911986081 100644 --- a/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.py +++ b/policyengine_us/variables/gov/states/nm/hca/premium_assistance/nm_premium_assistance_mih_eligible.py @@ -18,6 +18,12 @@ class nm_premium_assistance_mih_eligible(Variable): # eligibility, but not its FPL-band income test, which fails above 400% FPL. reference = ( "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/50c9a4d0-d5c8-48aa-8b9a-5c43e8fa23bc/Addendum%201_MAP%20P&P%20Middle%20Income%20Household.pdf#page=2", + # 8.401.2.7(G) NMAC defines the FPL. The rule in force is one HTML page; + # HCA's proposed amendment repeats the definition on PDF page 1. + "https://prod-rf-lambda.rtssaas.com/PublicFiles/d89c47bd0d70402dba89b03a22bda6d1/45b8668e-460f-45cd-804f-92ee3d442343/8.401.2.html", + "https://api.realfile.rtsclients.com/PublicFiles/6c91aefc960e463485b3474662fd7fd2/d3ee1d62-6f0f-4df7-b7fc-96a4c523ea89/08.401.0002_amended.pdf#page=1", + # 45 CFR 155.300(a): the Exchange's FPL. + "https://www.govinfo.gov/content/pkg/CFR-2025-title45-vol2/pdf/CFR-2025-title45-vol2-sec155-300.pdf#page=2", ) def formula(tax_unit, period, parameters): @@ -43,6 +49,15 @@ def formula(tax_unit, period, parameters): # stand for filing (files_return_for_aca_ptc); only filing for another # reason counts. is_filer = tax_unit("tax_unit_is_filer", period) - magi_frac = tax_unit("aca_magi_fraction", period) - income_eligible = magi_frac > p.fpl_limit + # Addendum 1, Section I.A(3): "Have a household income above 400% of + # the FPL." Test the exact ratio, not the truncated aca_magi_fraction: + # truncation maps 400.00%-400.99% to 4.00, which would leave incomes + # just above 400% out of both this component and the base program. + # nm_premium_assistance_eligible explains the choice of aca_fpg. + magi = max_(tax_unit("aca_magi", period), 0) + fpg = tax_unit("aca_fpg", period) + # Divide in float64: a float32 quotient can round a ratio just above + # a limit down onto it. + exact_magi_frac = magi.astype(np.float64) / fpg + income_eligible = exact_magi_frac > p.fpl_limit return in_effect & pays_premium & not_separate & is_filer & income_eligible