From 92fc49e3aacb2375e1f3f306c7f3ecddf67678b6 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 20 Oct 2026 17:35:01 -0400 Subject: [PATCH 1/3] Decide NJ Health Plan Savings' ceiling on the exact ratio; use DOBI's bands DOBI's 2027 Rate Filing Requirements tabulate the plan year 2026 New Jersey Health Plan Savings amounts by "Federal Poverty Level Range": "Less than 150% FPL", "At least 150% FPL but less than 200% FPL", ..., "At least 550% FPL but less than or equal to 600% FPL", "Above 600% FPL". - The eligibility gates compared the truncated aca_magi_fraction with 6.0, so every income from 600.00% to 600.99% passed. Test the exact ratio of nonnegative ACA MAGI to the prior-year guideline instead. - The per-member schedule used upper-inclusive "x.0001" thresholds from the 2021 Treasury addendum's "from X% through Y%" wording, so income at exactly 150%, 200%, 250% or 400% (and, with truncation, up to 0.99 points above) took the lower band. Its thresholds are now the bands' lower edges, as DOBI's table has them; the truncated fraction is exact for lower-inclusive whole-percentage edges. Tests that supplied aca_magi_fraction now supply aca_magi against a prior-year guideline of $10,000; the exactly-at-edge band cases follow DOBI; new cases use the real 2025 guideline at 138%, 150.994% and 600%. Co-Authored-By: Claude Opus 5.5 --- changelog.d/nj-njhps-exact-fpl-ratio.fixed.md | 1 + .../gov/states/nj/dobi/njhps/pmpm.yaml | 36 +-- .../gov/states/nj/dobi/njhps/integration.yaml | 61 +++-- .../gov/states/nj/dobi/njhps/nj_njhps.yaml | 221 ++++++++++++------ .../nj/dobi/njhps/nj_njhps_eligible.yaml | 121 +++++++++- .../dobi/njhps/nj_njhps_member_eligible.yaml | 133 +++++++++-- .../states/nj/dobi/njhps/nj_njhps_eligible.py | 5 +- .../nj/dobi/njhps/nj_njhps_member_eligible.py | 9 +- 8 files changed, 457 insertions(+), 130 deletions(-) create mode 100644 changelog.d/nj-njhps-exact-fpl-ratio.fixed.md diff --git a/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md b/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md new file mode 100644 index 00000000000..21f10cbee01 --- /dev/null +++ b/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md @@ -0,0 +1 @@ +Decide New Jersey Health Plan Savings' 600% income ceiling on the exact ratio of ACA MAGI to the prior-year poverty guideline instead of the truncated `aca_magi_fraction`, so incomes from 600.003% to 600.994% of the poverty line are no longer eligible, and put a household exactly at 150%, 200%, 250% or 400% of the poverty line (or up to one point above it) in the higher per-member band, following DOBI's table of plan year 2026 amounts ("At least 150% FPL but less than 200% FPL", ..., "At least 550% FPL but less than or equal to 600% FPL", "Above 600% FPL"). diff --git a/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml b/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml index b8a97a386f6..ce267dacf4f 100644 --- a/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml +++ b/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml @@ -14,6 +14,8 @@ metadata: href: https://pub.njleg.gov/bills/2020/AL20/61_.HTM - title: Get Covered NJ - New Jersey Health Plan Savings href: https://www.nj.gov/getcoverednj/financialhelp/premiums/ + - title: NJ DOBI 2027 Rate Filing Requirements, section 7 (plan year 2026 subsidy amounts by FPL range) + href: https://www.nj.gov/dobi/division_insurance/ihcseh/ratefilings/2027RateFilingRequirements.pdf#page=4 brackets: # Household income measured as ACA MAGI as a share of the federal poverty line. @@ -33,17 +35,23 @@ brackets: # FY2026, continuing "up to 600% FPL"). Neither source alone both states the # values and confirms PY2026 currency, so both are carried. The Get Covered NJ # URL is a secondary (anchorless) corroborating reference, not a value source. - # Bands are lower-exclusive / upper-inclusive, so thresholds use the "x.0001" - # convention to match the published "from X% through Y%" banding. The 138% floor - # is enforced by the eligibility gate; this base band gives $0 below 138% FPL so - # the single_amount lookup covers the full domain. + # Bands are lower-inclusive / upper-exclusive, as DOBI's 2027 Rate Filing + # Requirements (section 7) tabulate "the subsidy amounts from plan year 2026": + # "Less than 150% FPL" $20, "At least 150% FPL but less than 200% FPL" $40, ..., + # "At least 550% FPL but less than or equal to 600% FPL" $50, "Above 600% FPL" + # $0. Each threshold is therefore the band's lower edge, and a household exactly + # at an edge takes the higher band. The scale reads the truncated + # aca_magi_fraction, which is exact for lower-inclusive whole-percentage edges. + # The 138% floor and the 600% ceiling are enforced by the eligibility gate; this + # base band gives $0 below 138% FPL so the single_amount lookup covers the full + # domain. # Below 138% FPL (routed to NJ FamilyCare/Medicaid) -> $0 per member per month. - threshold: 2026-01-01: 0 amount: 0000-01-01: 0 2026-01-01: 0 - # 138% through 150% FPL -> $20 per member per month. The schedule is new to the + # 138% to less than 150% FPL -> $20 per member per month. The schedule is new to the # model for PY2026, so every band is $0 before 2026-01-01. The threshold is set # to 1.3799 (just below the 138% floor) because aca_magi_fraction is a float32 # variable and float32(1.38) rounds to 1.37999999..., which is just BELOW a @@ -54,32 +62,32 @@ brackets: amount: 0000-01-01: 0 2026-01-01: 20 - # 150% through 200% FPL -> $40. + # At least 150% but less than 200% FPL -> $40. - threshold: - 2026-01-01: 1.5001 + 2026-01-01: 1.5 amount: 0000-01-01: 0 2026-01-01: 40 - # 200% through 250% FPL -> $50. + # At least 200% but less than 250% FPL -> $50. - threshold: - 2026-01-01: 2.0001 + 2026-01-01: 2 amount: 0000-01-01: 0 2026-01-01: 50 - # 250% through 400% FPL -> $100. + # At least 250% but less than 400% FPL -> $100. - threshold: - 2026-01-01: 2.5001 + 2026-01-01: 2.5 amount: 0000-01-01: 0 2026-01-01: 100 - # 400% through 600% FPL -> $50. In this band the federal APTC is $0 (the 400% FPL + # At least 400% and up to 600% FPL -> $50. In this band the federal APTC is $0 (the 400% FPL # cliff reverts for PY2026), so NJHPS is the sole premium subsidy. - threshold: - 2026-01-01: 4.0001 + 2026-01-01: 4 amount: 0000-01-01: 0 2026-01-01: 50 - # Above 600% FPL (ineligible) -> $0. + # Above 600% FPL (ineligible; the eligibility gate excludes it) -> $0. - threshold: 2026-01-01: 6.0001 amount: diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml index 372c73ac5dd..a33ade0b86f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml @@ -1,6 +1,7 @@ # Integration tests for New Jersey Health Plan Savings (NJHPS). # -# These exercise the full chain: aca_magi_fraction (income band) -> +# These exercise the full chain: the exact ratio of ACA MAGI to the prior-year +# guideline (eligibility band) and aca_magi_fraction (PMPM band) -> # nj_njhps_member_eligible (per-person non-income enrollee gate) -> # nj_njhps_eligible (in_effect + band + at least one member) -> # nj_njhps (per-member build-up capped by SLCSP - APTC). @@ -12,19 +13,19 @@ # # Amount formula recap: # n = count of nj_njhps_member_eligible members -# pmpm(frac) = 20 [1.38-1.5], 40 (1.5-2.0], 50 (2.0-2.5], 100 (2.5-4.0], -# 50 (4.0-6.0], 0 elsewhere [per member per month] +# pmpm(frac) = 20 [1.38-1.5), 40 [1.5-2.0), 50 [2.0-2.5), 100 [2.5-4.0), +# 50 [4.0-6.0], 0 elsewhere [per member per month] # base_annual = 12 * pmpm(frac) * n # residual = max(0, slcsp_annual - aca_ptc) # annual = eligible * min(base_annual, residual) -- name: Scenario 1, single adult with income deriving 200% FPL, $40 band. +- name: Scenario 1, single adult with income deriving 200% FPL, $50 band. # Income path: employment_income 31_300 -> aca_magi 31_300 (single W-2 filer, # AGI = gross). aca_magi_fraction uses the PRIOR-year (2025) single FPG 15_650: # floor(100 * 31_300 / 15_650) / 100 = floor(200.0) / 100 = 2.0. - # frac 2.0 is upper-inclusive in the (1.5, 2.0] band -> pmpm 40. n=1 -> - # base = 12*40 = 480. residual = max(0, 8_000 - 5_000) = 3_000. - # annual = min(480, 3_000) = 480. + # DOBI's plan year 2026 bands are lower-inclusive: "At least 200% FPL but less + # than 250% FPL" -> pmpm 50. n=1 -> base = 12*50 = 600. + # residual = max(0, 8_000 - 5_000) = 3_000. annual = min(600, 3_000) = 600. period: 2026 absolute_error_margin: 0.01 input: @@ -49,7 +50,7 @@ nj_njhps_eligible: true slcsp: 8_000 # annual sum of the MONTH variable aca_ptc: 5_000 - nj_njhps: 480 + nj_njhps: 600 - name: Scenario 2, family of four at 300% FPL, four members, digest anchor. # frac 3.0 -> pmpm 100. All four pay an ACA premium -> n=4. @@ -66,7 +67,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -96,7 +99,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -125,7 +130,9 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 5_200 households: @@ -153,7 +160,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.2 + aca_magi: 12_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 4_000 households: @@ -181,7 +190,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.5 + aca_magi: 25_000 + tax_unit_fpg: + 2025: 10_000 filing_status: SEPARATE slcsp: 9_000 aca_ptc: 4_000 @@ -211,7 +222,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -231,10 +244,10 @@ # =========================================================================== - name: Scenario 8, exactly 400% FPL, APTC-positive residual caps below the base. - # notes: 400.0 leg of the residual-flip pair. frac 4.0 (NOT > 4.0001) -> pmpm 100, - # n=1 -> base = 12*100 = 1_200. At the cliff the tax unit is still APTC-eligible, + # notes: 400.0 leg of the residual-flip pair. "At least 400% FPL" -> pmpm 50, + # n=1 -> base = 12*50 = 600. At the cliff the tax unit is still APTC-eligible, # so aca_ptc 9_500 -> residual = max(0, 10_000 - 9_500) = 500. annual = - # min(1_200, 500) = 500 (the post-APTC residual binds). Paired with Scenario 9. + # min(600, 500) = 500 (the post-APTC residual binds). Paired with Scenario 9. period: 2026 absolute_error_margin: 0.01 input: @@ -245,7 +258,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -262,7 +277,7 @@ - name: Scenario 9, just above 400% FPL, APTC 0 so residual is the full SLCSP. # notes: 400.01 leg of the residual-flip pair (same slcsp 10_000 as Scenario 8). - # frac 4.01 > 4.0001 -> pmpm 50, n=1 -> base = 12*50 = 600. Above the 400% cliff + # frac 4.01 >= 4.0 -> pmpm 50, n=1 -> base = 12*50 = 600. Above the 400% cliff # aca_ptc 0 -> residual = max(0, 10_000 - 0) = 10_000. annual = min(600, 10_000) = # 600. The residual source flips from slcsp - aptc (500) to full slcsp (10_000), # so the base binds -> 600. NJHPS is the sole subsidy in this band. @@ -276,7 +291,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -307,7 +324,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml index 5ce199518f4..a864cfb31d7 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml @@ -1,21 +1,23 @@ # Unit tests for the New Jersey Health Plan Savings (NJHPS) amount. # -# All inputs (pays_aca_premium per person, aca_magi_fraction, slcsp as an annual -# value, aca_ptc) are supplied directly so every expected value is exactly -# hand-verifiable and independent of the rating-area premium lookup. slcsp is a +# All inputs (pays_aca_premium per person, aca_magi against a prior-year +# tax_unit_fpg pinned to $10,000, slcsp as an annual value, aca_ptc) are supplied +# directly so every expected value is exactly hand-verifiable and independent of the rating-area premium lookup. slcsp is a # MONTH-period variable; the amount formula annualizes it via # add(tax_unit, period, ["slcsp"]). Providing slcsp at the YEAR period sets the # annual total, so the values below are annual SLCSP. # # Formula (REQ-5): # n = count of nj_njhps_member_eligible members -# pmpm(frac) = 20 [1.38-1.5], 40 (1.5-2.0], 50 (2.0-2.5], 100 (2.5-4.0], -# 50 (4.0-6.0], 0 elsewhere [per member per month] +# pmpm(frac) = 20 [1.38-1.5), 40 [1.5-2.0), 50 [2.0-2.5), 100 [2.5-4.0), +# 50 [4.0-6.0], 0 elsewhere [per member per month] # base_annual = 12 * pmpm(frac) * n # residual = max(0, slcsp_annual - aca_ptc) # annual = eligible * min(base_annual, residual) -# PMPM bracket thresholds are 1.5001 / 2.0001 / 2.5001 / 4.0001 / 6.0001, so a -# fraction EXACTLY at a band boundary (e.g. 1.5 or 2.0) stays in the LOWER band. +# PMPM bracket thresholds are 1.5 / 2 / 2.5 / 4 (DOBI's plan year 2026 bands, +# "At least 150% FPL but less than 200% FPL" and so on), so a fraction EXACTLY at +# a band boundary (e.g. 1.5 or 2.0) takes the HIGHER band. The 600% ceiling is +# inclusive ("less than or equal to 600% FPL"). # --- Each PMPM band with a positive residual (base binds) --- @@ -32,7 +34,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.4 + aca_magi: 14_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -55,7 +59,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.8 + aca_magi: 18_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -78,7 +84,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -101,7 +109,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -126,7 +136,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -136,11 +148,12 @@ output: nj_njhps: 600 -# --- Band step boundaries (upper-inclusive; lower band wins at the exact edge) --- +# --- Band step boundaries (lower-inclusive; higher band wins at the exact edge) --- -- name: Case 6, exactly 150% FPL stays in the $20 band. - # frac 1.5 is NOT > 1.5001, so pmpm 20 (not 40). base = 12*20 = 240. - # residual = max(0, 6_000 - 5_000) = 1_000. annual = min(240, 1_000) = 240. +- name: Case 6, exactly 150% FPL is in the $40 band. + # DOBI's plan year 2026 bands: "At least 150% FPL but less than 200% FPL" -> + # pmpm 40. base = 12*40 = 480. + # residual = max(0, 6_000 - 5_000) = 1_000. annual = min(480, 1_000) = 480. period: 2026 absolute_error_margin: 0.01 input: @@ -151,7 +164,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.5 + aca_magi: 15_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -159,10 +174,10 @@ members: [person1] state_code: NJ output: - nj_njhps: 240 + nj_njhps: 480 - name: Case 7, just above 150% FPL moves to the $40 band. - # frac 1.51 > 1.5001 -> pmpm 40. base = 12*40 = 480. + # frac 1.51 >= 1.5 -> pmpm 40. base = 12*40 = 480. # residual = max(0, 6_000 - 5_000) = 1_000 -> annual = min(480, 1_000) = 480. period: 2026 absolute_error_margin: 0.01 @@ -174,7 +189,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.51 + aca_magi: 15_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -184,9 +201,9 @@ output: nj_njhps: 480 -- name: Case 8, exactly 200% FPL stays in the $40 band. - # frac 2.0 is NOT > 2.0001, so pmpm 40. base = 12*40 = 480. - # residual = max(0, 8_000 - 5_000) = 3_000 -> annual = min(480, 3_000) = 480. +- name: Case 8, exactly 200% FPL is in the $50 band. + # "At least 200% FPL but less than 250% FPL" -> pmpm 50. base = 12*50 = 600. + # residual = max(0, 8_000 - 5_000) = 3_000 -> annual = min(600, 3_000) = 600. period: 2026 absolute_error_margin: 0.01 input: @@ -197,7 +214,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -205,10 +224,10 @@ members: [person1] state_code: NJ output: - nj_njhps: 480 + nj_njhps: 600 - name: Case 9, just above 200% FPL moves to the $50 band. - # frac 2.01 > 2.0001 -> pmpm 50. base = 12*50 = 600. + # frac 2.01 >= 2.0 -> pmpm 50. base = 12*50 = 600. # residual = max(0, 8_000 - 5_000) = 3_000 -> annual = min(600, 3_000) = 600. period: 2026 absolute_error_margin: 0.01 @@ -220,7 +239,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.01 + aca_magi: 20_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -230,9 +251,9 @@ output: nj_njhps: 600 -- name: Case 10, exactly 250% FPL stays in the $50 band. - # frac 2.5 is NOT > 2.5001, so pmpm 50. base = 12*50 = 600. - # residual = max(0, 9_000 - 4_000) = 5_000 -> annual = min(600, 5_000) = 600. +- name: Case 10, exactly 250% FPL is in the $100 band. + # "At least 250% FPL but less than 400% FPL" -> pmpm 100. base = 12*100 = 1_200. + # residual = max(0, 9_000 - 4_000) = 5_000 -> annual = min(1_200, 5_000) = 1_200. period: 2026 absolute_error_margin: 0.01 input: @@ -243,7 +264,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.5 + aca_magi: 25_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -251,10 +274,10 @@ members: [person1] state_code: NJ output: - nj_njhps: 600 + nj_njhps: 1_200 - name: Case 11, just above 250% FPL moves to the $100 band. - # frac 2.51 > 2.5001 -> pmpm 100. base = 12*100 = 1_200. + # frac 2.51 >= 2.5 -> pmpm 100. base = 12*100 = 1_200. # residual = max(0, 9_000 - 4_000) = 5_000 -> annual = min(1_200, 5_000) = 1_200. period: 2026 absolute_error_margin: 0.01 @@ -266,7 +289,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.51 + aca_magi: 25_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -276,9 +301,9 @@ output: nj_njhps: 1_200 -- name: Case 12, exactly 400% FPL stays in the $100 band. - # frac 4.0 is NOT > 4.0001, so pmpm 100. base = 12*100 = 1_200. - # residual = max(0, 10_000 - 1_000) = 9_000 -> annual = min(1_200, 9_000) = 1_200. +- name: Case 12, exactly 400% FPL is in the $50 band. + # "At least 400% FPL but less than 450% FPL" -> pmpm 50. base = 12*50 = 600. + # residual = max(0, 10_000 - 1_000) = 9_000 -> annual = min(600, 9_000) = 600. period: 2026 absolute_error_margin: 0.01 input: @@ -289,7 +314,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 1_000 households: @@ -297,10 +324,10 @@ members: [person1] state_code: NJ output: - nj_njhps: 1_200 + nj_njhps: 600 - name: Case 13, just above 400% FPL moves to the $50 band. - # frac 4.01 > 4.0001 -> pmpm 50. Above the APTC cliff aca_ptc is 0. + # frac 4.01 >= 4.0 -> pmpm 50. Above the APTC cliff aca_ptc is 0. # base = 12*50 = 600. residual = max(0, 7_000 - 0) = 7_000 -> annual = 600. period: 2026 absolute_error_margin: 0.01 @@ -312,7 +339,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -323,7 +352,7 @@ nj_njhps: 600 - name: Case 14, exactly 600% FPL stays in the $50 band. - # frac 6.0 is NOT > 6.0001, so pmpm 50. base = 12*50 = 600. + # frac 6.0 is NOT > 6.0001 (the ceiling is inclusive), so pmpm 50. base = 12*50 = 600. # residual = max(0, 8_000 - 0) = 8_000 -> annual = min(600, 8_000) = 600. period: 2026 absolute_error_margin: 0.01 @@ -335,7 +364,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -357,7 +388,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -384,7 +417,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -412,7 +447,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.45 + aca_magi: 14_500 + tax_unit_fpg: + 2025: 10_000 slcsp: 5_100 aca_ptc: 5_000 households: @@ -435,7 +472,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.45 + aca_magi: 14_500 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -461,7 +500,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 5_000 aca_ptc: 5_000 households: @@ -485,7 +526,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.3 + aca_magi: 13_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -509,7 +552,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -533,7 +578,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -557,7 +604,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2024: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -588,7 +637,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 0 aca_ptc: 0 households: @@ -614,7 +665,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 5_600 aca_ptc: 5_000 households: @@ -631,10 +684,10 @@ # residual jumps to the full slcsp. The pmpm band ALSO steps $100 -> $50 here, so # the pair shows the band step and the residual-source flip together. -- name: Case 26, exactly 400% FPL, $100 band, APTC-positive residual caps the base. - # notes: 400.0 leg of the cliff pair. frac 4.0 (NOT > 4.0001) -> pmpm 100, - # base = 12*100 = 1_200. aca_ptc 9_500 (still APTC-eligible at the cliff) -> - # residual = max(0, 10_000 - 9_500) = 500 -> annual = min(1_200, 500) = 500. +- name: Case 26, exactly 400% FPL, $50 band, APTC-positive residual caps the base. + # notes: 400.0 leg of the cliff pair. "At least 400% FPL" -> pmpm 50, + # base = 12*50 = 600. aca_ptc 9_500 (still APTC-eligible at the cliff) -> + # residual = max(0, 10_000 - 9_500) = 500 -> annual = min(600, 500) = 500. # The post-APTC residual binds (distinct from Case 12, where the base binds). period: 2026 absolute_error_margin: 0.01 @@ -646,7 +699,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -657,8 +712,8 @@ nj_njhps: 500 - name: Case 27, just above 400% FPL, $50 band, APTC 0 so residual is full SLCSP. - # notes: 400.01 leg of the cliff pair (same slcsp 10_000 as Case 26). frac 4.01 > - # 4.0001 -> pmpm 50, base = 12*50 = 600. Above the 400% cliff aca_ptc 0 -> + # notes: 400.01 leg of the cliff pair (same slcsp 10_000 as Case 26). frac 4.01 >= + # 4.0 -> pmpm 50, base = 12*50 = 600. Above the 400% cliff aca_ptc 0 -> # residual = max(0, 10_000 - 0) = 10_000 -> annual = min(600, 10_000) = 600. # The residual source flips from slcsp - aptc (500 available) to full slcsp # (10_000 available), so the base now binds -> 600. @@ -672,7 +727,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + tax_unit_fpg: + 2025: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -700,7 +757,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -728,7 +787,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 30_000 aca_ptc: 5_000 households: @@ -755,7 +816,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + tax_unit_fpg: + 2025: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -783,7 +846,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + tax_unit_fpg: + 2025: 10_000 slcsp: 5_000 aca_ptc: 6_000 households: @@ -792,3 +857,27 @@ state_code: NJ output: nj_njhps: 0 + +- name: Case 32, $23,630.56 (150.994% of the 2025 guideline) is in the $40 band. + # The truncated fraction is 1.50, which is "at least 150%": pmpm 40, so + # base = 12*40 = 480. residual = max(0, 6_000 - 5_000) = 1_000 -> annual = 480. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 23_630.56 + slcsp: 6_000 + aca_ptc: 5_000 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 1.50 + nj_njhps: 480 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml index ca24a904635..6f404f33457 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml @@ -2,7 +2,10 @@ # # nj_njhps_eligible (TaxUnit, bool, YEAR) returns: # in_effect -# & (fpl_floor <= aca_magi_fraction <= fpl_limit) [1.38 <= frac <= 6.0] +# & (fpl_floor <= ratio <= fpl_limit) [1.38 <= ratio <= 6.0] +# where ratio = max(aca_magi, 0) / tax_unit_fpg(prior year), the exact ratio, not +# the truncated aca_magi_fraction. Supplied-income cases pin the prior-year +# guideline to $10,000. # & (count of nj_njhps_member_eligible > 0) # # in_effect is false before 2026-01-01 and true (open-ended) from 2026-01-01. @@ -20,7 +23,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -41,7 +46,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.37 + aca_magi: 13_700 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -60,7 +67,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -81,7 +90,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -100,7 +111,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -122,7 +135,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -144,7 +159,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -165,7 +182,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -187,7 +206,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2024: 10_000 households: household: members: [person1] @@ -206,10 +227,88 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2026: 10_000 households: household: members: [person1] state_code: NJ output: nj_njhps_eligible: true + +- name: Case 11, $93,900 (exactly 600% of the 2025 guideline) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + nj_njhps_member_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 93_900 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_eligible: true + +- name: Case 12, $93,900.47 (600.003%) is ineligible though truncated to 6.00. + period: 2026 + input: + people: + person1: + age: 40 + nj_njhps_member_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 93_900.47 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_eligible: false + +- name: Case 13, $94,055.56 (600.994%) is ineligible though truncated to 6.00. + period: 2026 + input: + people: + person1: + age: 40 + nj_njhps_member_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 94_055.56 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_eligible: false + +- name: Case 14, $21,597 (exactly 138%) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + nj_njhps_member_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 21_597 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 1.38 + nj_njhps_eligible: true diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml index 0aadc7215a3..03cbbb9652a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml @@ -5,11 +5,14 @@ # PY2026 (the 400% APTC cliff reverts). It returns: # pays_aca_premium # & filing_status != SEPARATE -# & (fpl_floor <= aca_magi_fraction <= fpl_limit) [1.38 <= frac <= 6.0] +# & (fpl_floor <= ratio <= fpl_limit) [1.38 <= ratio <= 6.0] +# where ratio = max(aca_magi, 0) / tax_unit_fpg(prior year), the exact ratio, not +# the truncated aca_magi_fraction. # # pays_aca_premium is a Person YEAR bool supplied directly so each case is -# independent of the immigration / MEC / TIN / coverage-gap internals. aca_magi_fraction and -# filing_status are TaxUnit inputs. The band boundaries are inclusive on both ends: +# independent of the immigration / MEC / TIN / coverage-gap internals. aca_magi (against a +# prior-year tax_unit_fpg pinned to $10,000) and filing_status are TaxUnit inputs; +# income-derived cases use the actual 2025 one-person guideline, $15,650. The band boundaries are inclusive on both ends: # 1.38 (138% floor) and 6.0 (600% ceiling). # --- pays_aca_premium gate --- @@ -24,7 +27,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -42,7 +47,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -64,7 +71,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 filing_status: SEPARATE households: household: @@ -86,7 +95,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.37 + aca_magi: 13_700 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -105,7 +116,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -124,7 +137,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -143,7 +158,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -166,7 +183,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -187,7 +206,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] @@ -210,7 +231,9 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + tax_unit_fpg: + 2024: 10_000 households: household: members: [person1] @@ -235,7 +258,9 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1, person2, person3, person4] @@ -260,10 +285,88 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: -0.5 + aca_magi: -5_000 + tax_unit_fpg: + 2025: 10_000 households: household: members: [person1] state_code: NJ output: nj_njhps_member_eligible: false + +- name: Case 13, $93,900 (exactly 600% of the 2025 guideline) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 93_900 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_member_eligible: [true] + +- name: Case 14, $93,900.47 (600.003%) is ineligible though truncated to 6.00. + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 93_900.47 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_member_eligible: [false] + +- name: Case 15, $94,055.56 (600.994%) is ineligible though truncated to 6.00. + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 94_055.56 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 6.00 + nj_njhps_member_eligible: [false] + +- name: Case 16, $21,597 (exactly 138%) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + pays_aca_premium: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 21_597 + households: + household: + members: [person1] + state_code: NJ + output: + aca_magi_fraction: 1.38 + nj_njhps_member_eligible: [true] diff --git a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py index 558647c50a9..77bc4e6b89d 100644 --- a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py +++ b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py @@ -24,7 +24,10 @@ class nj_njhps_eligible(Variable): def formula(tax_unit, period, parameters): p = parameters(period).gov.states.nj.dobi.njhps in_effect = p.in_effect - magi_fraction = tax_unit("aca_magi_fraction", period) + # The exact ratio, not the truncated aca_magi_fraction, which maps + # 600.00%-600.99% to 6.00 (see nj_njhps_member_eligible). + magi = max_(tax_unit("aca_magi", period), 0) + magi_fraction = magi / tax_unit("tax_unit_fpg", period.last_year) income_eligible = (magi_fraction >= p.fpl_floor) & ( magi_fraction <= p.fpl_limit ) diff --git a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py index 6be048c756f..3777f6cff92 100644 --- a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py +++ b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py @@ -35,8 +35,13 @@ class nj_njhps_member_eligible(Variable): def formula(person, period, parameters): p = parameters(period).gov.states.nj.dobi.njhps - # aca_magi_fraction is a TaxUnit variable read at the person level. - magi_fraction = person.tax_unit("aca_magi_fraction", period) + # DOBI's plan year 2026 schedule runs to "less than or equal to 600% + # FPL" ($0 "Above 600% FPL"). Test the exact ratio, not the truncated + # aca_magi_fraction: truncation maps 600.00%-600.99% to 6.00, which + # would admit incomes above 600%. The 138% floor (">=") is unaffected + # by truncation. Both are TaxUnit quantities read at the person level. + magi = max_(person.tax_unit("aca_magi", period), 0) + magi_fraction = magi / person.tax_unit("tax_unit_fpg", period.last_year) # pays_aca_premium is the Person-level Marketplace enrollment test: # TIN, immigration/lawful-presence status, no ineligible minimum # essential coverage, the age-based premium requirement and, since From 4fc97eec2618468bc31768c40e38fac1d5fd8fec Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Wed, 18 Nov 2026 15:13:47 -0500 Subject: [PATCH 2/3] Read NJ Health Plan Savings' income limits from the credit's poverty line Divide ACA MAGI by aca_fpg, the prior-year guideline for the section 36B tax family that the federal credit has used since #10041, instead of the whole tax unit's guideline. Divide in float64 so a ratio just above the ceiling can't round down onto it. DOBI's and Get Covered NJ's dollar limits imply the guideline year. Get Covered NJ's "tax households" isn't defined, so the comment calls leaving out a filer who can be claimed elsewhere a modeling choice. Pin the test fixtures to aca_fpg, add joint returns with a claimable spouse, and move main's two such cases at exactly 150% FPL to DOBI's $40 band. The household pipeline cases now supply income, because the gates no longer read a supplied aca_magi_fraction. Cite DOBI's table as Section 2, item 7 of the filing requirements. Co-Authored-By: Claude Opus 5.5 --- changelog.d/nj-njhps-exact-fpl-ratio.fixed.md | 2 +- .../gov/states/nj/dobi/njhps/pmpm.yaml | 4 +- .../gov/states/nj/dobi/njhps/integration.yaml | 31 +-- .../gov/states/nj/dobi/njhps/nj_njhps.yaml | 201 ++++++++++++------ .../nj/dobi/njhps/nj_njhps_eligible.yaml | 131 ++++++++++-- .../dobi/njhps/nj_njhps_member_eligible.yaml | 104 ++++++--- .../household/healthcare_benefit_value.yaml | 5 +- .../household/household_health_benefits.yaml | 3 +- .../states/nj/dobi/njhps/nj_njhps_eligible.py | 30 ++- .../nj/dobi/njhps/nj_njhps_member_eligible.py | 25 ++- 10 files changed, 380 insertions(+), 156 deletions(-) diff --git a/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md b/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md index 21f10cbee01..d11318ef249 100644 --- a/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md +++ b/changelog.d/nj-njhps-exact-fpl-ratio.fixed.md @@ -1 +1 @@ -Decide New Jersey Health Plan Savings' 600% income ceiling on the exact ratio of ACA MAGI to the prior-year poverty guideline instead of the truncated `aca_magi_fraction`, so incomes from 600.003% to 600.994% of the poverty line are no longer eligible, and put a household exactly at 150%, 200%, 250% or 400% of the poverty line (or up to one point above it) in the higher per-member band, following DOBI's table of plan year 2026 amounts ("At least 150% FPL but less than 200% FPL", ..., "At least 550% FPL but less than or equal to 600% FPL", "Above 600% FPL"). +Decide New Jersey Health Plan Savings' 600% income ceiling on the exact ratio of ACA MAGI to the premium tax credit's poverty line (`aca_fpg`) instead of the truncated `aca_magi_fraction`, so incomes from 600.003% to 600.994% of the poverty line are no longer eligible, and put a household exactly at 150%, 200%, 250% or 400% of the poverty line (or up to one point above it) in the higher per-member band, following DOBI's table of plan year 2026 amounts ("At least 150% FPL but less than 200% FPL", ..., "At least 550% FPL but less than or equal to 600% FPL", "Above 600% FPL"). diff --git a/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml b/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml index ce267dacf4f..5264d91303f 100644 --- a/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml +++ b/policyengine_us/parameters/gov/states/nj/dobi/njhps/pmpm.yaml @@ -14,7 +14,7 @@ metadata: href: https://pub.njleg.gov/bills/2020/AL20/61_.HTM - title: Get Covered NJ - New Jersey Health Plan Savings href: https://www.nj.gov/getcoverednj/financialhelp/premiums/ - - title: NJ DOBI 2027 Rate Filing Requirements, section 7 (plan year 2026 subsidy amounts by FPL range) + - title: NJ DOBI 2027 Rate Filing Requirements, Section 2, item 7 (plan year 2026 subsidy amounts by FPL range) href: https://www.nj.gov/dobi/division_insurance/ihcseh/ratefilings/2027RateFilingRequirements.pdf#page=4 brackets: @@ -36,7 +36,7 @@ brackets: # values and confirms PY2026 currency, so both are carried. The Get Covered NJ # URL is a secondary (anchorless) corroborating reference, not a value source. # Bands are lower-inclusive / upper-exclusive, as DOBI's 2027 Rate Filing - # Requirements (section 7) tabulate "the subsidy amounts from plan year 2026": + # Requirements (Section 2, item 7) tabulate "the subsidy amounts from plan year 2026": # "Less than 150% FPL" $20, "At least 150% FPL but less than 200% FPL" $40, ..., # "At least 550% FPL but less than or equal to 600% FPL" $50, "Above 600% FPL" # $0. Each threshold is therefore the band's lower edge, and a household exactly diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml index a33ade0b86f..cd2fa3cdf4d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/integration.yaml @@ -1,7 +1,7 @@ # Integration tests for New Jersey Health Plan Savings (NJHPS). # -# These exercise the full chain: the exact ratio of ACA MAGI to the prior-year -# guideline (eligibility band) and aca_magi_fraction (PMPM band) -> +# These exercise the full chain: the exact ratio of ACA MAGI to aca_fpg +# (eligibility band) and aca_magi_fraction (PMPM band) -> # nj_njhps_member_eligible (per-person non-income enrollee gate) -> # nj_njhps_eligible (in_effect + band + at least one member) -> # nj_njhps (per-member build-up capped by SLCSP - APTC). @@ -68,8 +68,7 @@ tax_unit: members: [person1, person2, person3, person4] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -100,8 +99,7 @@ tax_unit: members: [person1] aca_magi: 50_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -131,8 +129,7 @@ tax_unit: members: [person1, person2] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_200 households: @@ -161,8 +158,7 @@ tax_unit: members: [person1] aca_magi: 12_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 4_000 households: @@ -191,8 +187,7 @@ tax_unit: members: [person1] aca_magi: 25_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 filing_status: SEPARATE slcsp: 9_000 aca_ptc: 4_000 @@ -223,8 +218,7 @@ tax_unit: members: [person1] aca_magi: 60_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -259,8 +253,7 @@ tax_unit: members: [person1] aca_magi: 40_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -292,8 +285,7 @@ tax_unit: members: [person1] aca_magi: 40_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -325,8 +317,7 @@ tax_unit: members: [person1, person2, person3, person4] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml index cc49a455876..4be07f6c1dd 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml @@ -1,7 +1,7 @@ # Unit tests for the New Jersey Health Plan Savings (NJHPS) amount. # -# All inputs (pays_aca_premium per person, aca_magi against a prior-year -# tax_unit_fpg pinned to $10,000, slcsp as an annual value, aca_ptc) are supplied +# All inputs (pays_aca_premium per person, aca_magi against an aca_fpg pinned to +# $10,000, slcsp as an annual value, aca_ptc) are supplied # directly so every expected value is exactly hand-verifiable and independent of the rating-area premium lookup. slcsp is a # MONTH-period variable; the amount formula annualizes it via # add(tax_unit, period, ["slcsp"]). Providing slcsp at the YEAR period sets the @@ -35,8 +35,7 @@ tax_unit: members: [person1] aca_magi: 14_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -60,8 +59,7 @@ tax_unit: members: [person1] aca_magi: 18_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -85,8 +83,7 @@ tax_unit: members: [person1] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -110,8 +107,7 @@ tax_unit: members: [person1] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -137,8 +133,7 @@ tax_unit: members: [person1] aca_magi: 50_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -165,8 +160,7 @@ tax_unit: members: [person1] aca_magi: 15_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -190,8 +184,7 @@ tax_unit: members: [person1] aca_magi: 15_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -215,8 +208,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -240,8 +232,7 @@ tax_unit: members: [person1] aca_magi: 20_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -265,8 +256,7 @@ tax_unit: members: [person1] aca_magi: 25_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -290,8 +280,7 @@ tax_unit: members: [person1] aca_magi: 25_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -315,8 +304,7 @@ tax_unit: members: [person1] aca_magi: 40_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 1_000 households: @@ -340,8 +328,7 @@ tax_unit: members: [person1] aca_magi: 40_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -365,8 +352,7 @@ tax_unit: members: [person1] aca_magi: 60_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -389,8 +375,7 @@ tax_unit: members: [person1] aca_magi: 60_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -418,8 +403,7 @@ tax_unit: members: [person1, person2, person3, person4] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -448,8 +432,7 @@ tax_unit: members: [person1] aca_magi: 14_500 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 5_100 aca_ptc: 5_000 households: @@ -473,8 +456,7 @@ tax_unit: members: [person1] aca_magi: 14_500 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -501,8 +483,7 @@ tax_unit: members: [person1] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 5_000 aca_ptc: 5_000 households: @@ -527,8 +508,7 @@ tax_unit: members: [person1] aca_magi: 13_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -553,8 +533,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -579,8 +558,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -605,8 +583,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2024: 10_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -638,8 +615,7 @@ tax_unit: members: [person1] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 0 aca_ptc: 0 households: @@ -666,8 +642,7 @@ tax_unit: members: [person1] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 5_600 aca_ptc: 5_000 households: @@ -700,8 +675,7 @@ tax_unit: members: [person1] aca_magi: 40_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -728,8 +702,7 @@ tax_unit: members: [person1] aca_magi: 40_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -758,8 +731,7 @@ tax_unit: members: [person1, person2, person3, person4] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -788,8 +760,7 @@ tax_unit: members: [person1, person2, person3, person4, person5] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 30_000 aca_ptc: 5_000 households: @@ -817,8 +788,7 @@ tax_unit: members: [person1] aca_magi: 13_800 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -847,8 +817,7 @@ tax_unit: members: [person1] aca_magi: 22_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 slcsp: 5_000 aca_ptc: 6_000 households: @@ -920,10 +889,11 @@ state_code: NJ output: # Tax family of one: 23,475 / 15,650 = 150% FPL; aca_ptc_slcsp 6,000; - # aca_ptc = 6,000 - 0.0419 * 23,475 = 5,016.40. - # NJHPS goes to enrollees otherwise eligible for APTC: one member at - # $20 PMPM (138-150% FPL) = 240; nobody claimable is 110% FPL, below 138%. - nj_njhps: 240 + # aca_ptc = 6,000 - 0.0419 * 23,475 = 5,016.40, leaving a residual of 983.60. + # NJHPS goes to enrollees otherwise eligible for APTC: one member at $40 + # PMPM ("At least 150% FPL but less than 200% FPL") = 480. Counting the + # claimable spouse would put the return at 110% FPL, below the 138% floor. + nj_njhps: 480 - name: 2026 NJ joint return with one claimable spouse (the claimable spouse is the spouse) period: 2026 @@ -962,7 +932,8 @@ members: [person_b, person_a] state_code: NJ output: - nj_njhps: 240 + # The same return with the roles swapped: one member at $40 PMPM = 480. + nj_njhps: 480 - name: 2026 NJ joint return with neither spouse claimable period: 2026 @@ -1043,3 +1014,95 @@ output: # Neither spouse is in a federal tax family. nj_njhps: 0 + +- name: Case 33, a joint return with one claimable spouse at 600% of the one-person guideline gets the $50 band. + # The claimable spouse is outside the section 36B tax family, so aca_fpg is + # the one-person guideline: 93_900 / 15_650 = 6.00, inclusive at the ceiling. + # One member at $50 PMPM: 12 * 50 = 600. Above 400% FPL aca_ptc is 0, so the + # residual is the 6,000 benchmark. New Jersey's sources don't say whether this + # filer counts; 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_amount_person: 6000 + 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_amount_person: 6000 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + aca_magi_fraction: 6.00 + aca_ptc: 0 + nj_njhps: 600 + +- name: Case 34, the same return at 600.003% of the one-person guideline gets nothing. + # 93_900.47 / 15_650 = 6.00003, above the ceiling though truncated to 6.00 + # and only 444% of the whole unit's $21,150 guideline. + 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_amount_person: 6000 + 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_amount_person: 6000 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900.47 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + aca_magi_fraction: 6.00 + nj_njhps: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml index 6f404f33457..82b5035da88 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml @@ -3,9 +3,8 @@ # nj_njhps_eligible (TaxUnit, bool, YEAR) returns: # in_effect # & (fpl_floor <= ratio <= fpl_limit) [1.38 <= ratio <= 6.0] -# where ratio = max(aca_magi, 0) / tax_unit_fpg(prior year), the exact ratio, not -# the truncated aca_magi_fraction. Supplied-income cases pin the prior-year -# guideline to $10,000. +# where ratio = max(aca_magi, 0) / aca_fpg, the exact ratio, not the truncated +# aca_magi_fraction. Supplied-income cases pin aca_fpg to $10,000. # & (count of nj_njhps_member_eligible > 0) # # in_effect is false before 2026-01-01 and true (open-ended) from 2026-01-01. @@ -24,8 +23,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -47,8 +45,7 @@ tax_unit: members: [person1] aca_magi: 13_700 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -68,8 +65,7 @@ tax_unit: members: [person1] aca_magi: 13_800 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -91,8 +87,7 @@ tax_unit: members: [person1] aca_magi: 60_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -112,8 +107,7 @@ tax_unit: members: [person1] aca_magi: 60_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -136,8 +130,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -160,8 +153,7 @@ tax_unit: members: [person1] aca_magi: 50_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -183,8 +175,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -207,8 +198,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2024: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -228,8 +218,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2026: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -312,3 +301,99 @@ output: aca_magi_fraction: 1.38 nj_njhps_eligible: true + +- name: Case 15, a joint return with one claimable spouse at 600% of the one-person guideline is eligible. + # The claimable spouse is outside the section 36B tax family, so aca_fpg is + # the one-person guideline: 93_900 / 15_650 = 6.00. New Jersey's sources don't + # say whether this filer counts; this pins the model's use of aca_fpg. + period: 2026 + input: + people: + person_a: + age: 30 + nj_njhps_member_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + nj_njhps_member_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nj_njhps_eligible: true + +- name: Case 16, the same return at 600.003% of the one-person guideline is ineligible. + # 93_900.47 / 15_650 = 6.00003, though only 444% of the whole unit's $21,150. + period: 2026 + input: + people: + person_a: + age: 30 + nj_njhps_member_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + nj_njhps_member_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900.47 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nj_njhps_eligible: false + +- name: Case 17, the same return at 150% of the one-person guideline is eligible. + # 23_475 / 15_650 = 1.50, though only 111% of the whole unit's $21,150, which + # is below the 138% floor. + period: 2026 + input: + people: + person_a: + age: 30 + nj_njhps_member_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + nj_njhps_member_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 23_475 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + nj_njhps_eligible: true diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml index 6dad54c2adc..3463cd4534f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.yaml @@ -6,12 +6,12 @@ # pays_aca_premium # & filing_status != SEPARATE # & (fpl_floor <= ratio <= fpl_limit) [1.38 <= ratio <= 6.0] -# where ratio = max(aca_magi, 0) / tax_unit_fpg(prior year), the exact ratio, not -# the truncated aca_magi_fraction. +# where ratio = max(aca_magi, 0) / aca_fpg, the exact ratio, not the truncated +# aca_magi_fraction. # # pays_aca_premium is a Person YEAR bool supplied directly so each case is -# independent of the immigration / MEC / TIN / coverage-gap internals. aca_magi (against a -# prior-year tax_unit_fpg pinned to $10,000) and filing_status are TaxUnit inputs; +# independent of the immigration / MEC / TIN / coverage-gap internals. aca_magi (against an +# aca_fpg pinned to $10,000) and filing_status are TaxUnit inputs; # income-derived cases use the actual 2025 one-person guideline, $15,650. The band boundaries are inclusive on both ends: # 1.38 (138% floor) and 6.0 (600% ceiling). @@ -28,8 +28,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -48,8 +47,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -72,8 +70,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 filing_status: SEPARATE households: household: @@ -96,8 +93,7 @@ tax_unit: members: [person1] aca_magi: 13_700 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -117,8 +113,7 @@ tax_unit: members: [person1] aca_magi: 13_800 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -138,8 +133,7 @@ tax_unit: members: [person1] aca_magi: 60_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -159,8 +153,7 @@ tax_unit: members: [person1] aca_magi: 60_100 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -184,8 +177,7 @@ tax_unit: members: [person1] aca_magi: 50_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -207,8 +199,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -232,8 +223,7 @@ tax_unit: members: [person1] aca_magi: 20_000 - tax_unit_fpg: - 2024: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -259,8 +249,7 @@ tax_unit: members: [person1, person2, person3, person4] aca_magi: 30_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1, person2, person3, person4] @@ -286,8 +275,7 @@ tax_unit: members: [person1] aca_magi: -5_000 - tax_unit_fpg: - 2025: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -446,3 +434,63 @@ state_code: NJ output: nj_njhps_member_eligible: [true, false] + +- name: Case 17, on a joint return with one claimable spouse, 600% of the one-person guideline is within the band. + # aca_fpg is the one-person guideline: 93_900 / 15_650 = 6.00. The claimable + # spouse is not a member. New Jersey's sources don't say whether this filer + # counts toward the poverty line; this pins the model's use of aca_fpg. + period: 2026 + input: + people: + person_a: + age: 30 + pays_aca_premium: true + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + pays_aca_premium: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + nj_njhps_member_eligible: [false, true] + +- name: Case 18, on the same return, 600.003% of the one-person guideline is above the band. + # 93_900.47 / 15_650 = 6.00003, though only 444% of the whole unit's $21,150. + period: 2026 + input: + people: + person_a: + age: 30 + pays_aca_premium: true + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + pays_aca_premium: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 93_900.47 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: NJ + output: + nj_njhps_member_eligible: [false, false] diff --git a/policyengine_us/tests/policy/baseline/household/healthcare_benefit_value.yaml b/policyengine_us/tests/policy/baseline/household/healthcare_benefit_value.yaml index 2b7980e1463..b0718b20c1a 100644 --- a/policyengine_us/tests/policy/baseline/household/healthcare_benefit_value.yaml +++ b/policyengine_us/tests/policy/baseline/household/healthcare_benefit_value.yaml @@ -388,7 +388,7 @@ - name: Case 20, DERIVED New Jersey Health Plan Savings flows into healthcare benefit value. # notes: proves the nj_njhps wiring against a COMPUTED value rather than a forced # nj_njhps (Case 19 forces 480; this derives). A real NJ single-adult household in - # the $20 band: frac 1.4 in [1.38, 1.5] -> pmpm 20, n=1 -> base = 12*20 = 240. + # the $20 band: 14_000 / 10_000 = 1.4 in [1.38, 1.5) -> pmpm 20, n=1 -> base = 12*20 = 240. # slcsp 6_000, aca_ptc 5_000 -> residual = max(0, 6_000 - 5_000) = 1_000 -> # nj_njhps = min(240, 1_000) = 240. All other health channels are forced to 0, so # healthcare_benefit_value = the derived nj_njhps = 240. Does NOT alter Case 19 or @@ -406,7 +406,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.4 + aca_magi: 14_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 assigned_aca_ptc: 0 diff --git a/policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml b/policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml index 27e54bfb1c6..6d3b60f7e46 100644 --- a/policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml +++ b/policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml @@ -436,7 +436,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 3_000 assigned_aca_ptc: 0 diff --git a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py index 77bc4e6b89d..c2a1755ac28 100644 --- a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py +++ b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py @@ -10,26 +10,40 @@ class nj_njhps_eligible(Variable): reference = ( "https://www.cms.gov/files/document/1332-ota-methodology-addendum-nj-pass-through.pdf#page=8", "https://pub.njleg.gov/bills/2020/AL20/61_.HTM", + # DOBI's plan year 2026 schedule, by "Federal Poverty Level Range". + "https://www.nj.gov/dobi/division_insurance/ihcseh/ratefilings/2027RateFilingRequirements.pdf#page=4", + # The 600% limit in dollars for one person: $93,900 (600% of the 2025 + # guideline) in DOBI's July 2026 release, and $95,760 (600% of the 2026 + # guideline) for "tax households" on Get Covered NJ during open + # enrollment for 2027. + "https://www.nj.gov/dobi/pressreleases/pr260709.html#:~:text=up%20to%20600%20percent%20of%20the%20federal%20poverty%20level", + "https://www.nj.gov/getcoverednj/financialhelp/premiums/#:~:text=Tax%20households%20with%20annual%20incomes", ) documentation = ( "A tax unit is eligible for New Jersey Health Plan Savings when the " "program is in effect, household income (ACA MAGI per 26 U.S.C. " "36B(d)(2)) is at least 138% and at most 600% of the federal poverty " - "line, and at least one member is an NJHPS enrollee. Households below " - "138% FPL are routed to NJ FamilyCare/Medicaid rather than NJHPS; the " - "138% floor is inclusive and the 600% ceiling is inclusive. New Jersey " - "residency is enforced by defined_for." + "line (aca_fpg, the prior-year guideline for the section 36B tax " + "family), measured as the exact ratio rather than the truncated " + "aca_magi_fraction, and at least one member is an NJHPS enrollee. " + "Households below 138% FPL are routed to NJ FamilyCare/Medicaid rather " + "than NJHPS; the 138% floor is inclusive and the 600% ceiling is " + "inclusive. New Jersey residency is enforced by defined_for." ) def formula(tax_unit, period, parameters): p = parameters(period).gov.states.nj.dobi.njhps in_effect = p.in_effect # The exact ratio, not the truncated aca_magi_fraction, which maps - # 600.00%-600.99% to 6.00 (see nj_njhps_member_eligible). + # 600.00%-600.99% to 6.00. nj_njhps_member_eligible explains the choice + # of aca_fpg as the poverty line. magi = max_(tax_unit("aca_magi", period), 0) - magi_fraction = magi / tax_unit("tax_unit_fpg", period.last_year) - income_eligible = (magi_fraction >= p.fpl_floor) & ( - magi_fraction <= p.fpl_limit + 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_floor) & ( + exact_magi_frac <= p.fpl_limit ) has_eligible_member = add(tax_unit, period, ["nj_njhps_member_eligible"]) > 0 return in_effect & income_eligible & has_eligible_member diff --git a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py index 601cf977175..725ad91ce96 100644 --- a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py +++ b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_member_eligible.py @@ -10,6 +10,14 @@ class nj_njhps_member_eligible(Variable): reference = ( "https://www.cms.gov/files/document/1332-ota-methodology-addendum-nj-pass-through.pdf#page=8", "https://pub.njleg.gov/bills/2020/AL20/61_.HTM", + # DOBI's plan year 2026 schedule, by "Federal Poverty Level Range". + "https://www.nj.gov/dobi/division_insurance/ihcseh/ratefilings/2027RateFilingRequirements.pdf#page=4", + # The 600% limit in dollars for one person: $93,900 (600% of the 2025 + # guideline) in DOBI's July 2026 release, and $95,760 (600% of the 2026 + # guideline) for "tax households" on Get Covered NJ during open + # enrollment for 2027. + "https://www.nj.gov/dobi/pressreleases/pr260709.html#:~:text=up%20to%20600%20percent%20of%20the%20federal%20poverty%20level", + "https://www.nj.gov/getcoverednj/financialhelp/premiums/#:~:text=Tax%20households%20with%20annual%20incomes", ) documentation = ( "A person is a New Jersey Health Plan Savings enrollee when they pay an " @@ -45,8 +53,19 @@ def formula(person, period, parameters): # aca_magi_fraction: truncation maps 600.00%-600.99% to 6.00, which # would admit incomes above 600%. The 138% floor (">=") is unaffected # by truncation. Both are TaxUnit quantities read at the person level. + # No New Jersey source found defines the poverty line. Published dollar + # limits imply the guideline year, which aca_fpg matches: DOBI gave + # $93,900 for one person in July 2026 (600% of the 2025 guideline), and + # Get Covered NJ gives $95,760 during open enrollment for 2027 (600% of + # the 2026 guideline). Get Covered NJ applies the limit to "tax + # households" without defining the term or saying whether a filer who + # can be claimed on another return counts. Leaving that filer out, as + # aca_fpg does, is a modeling choice. magi = max_(person.tax_unit("aca_magi", period), 0) - magi_fraction = magi / person.tax_unit("tax_unit_fpg", period.last_year) + fpg = person.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 # pays_aca_premium is the Person-level Marketplace enrollment test: # TIN, immigration/lawful-presence status, no ineligible minimum # essential coverage, the age-based premium requirement and, since @@ -63,5 +82,7 @@ def formula(person, period, parameters): tax_family_member = person("is_aca_tax_family_member", period) fstatus = person.tax_unit("filing_status", period) not_separate = fstatus != fstatus.possible_values.SEPARATE - within_band = (magi_fraction >= p.fpl_floor) & (magi_fraction <= p.fpl_limit) + within_band = (exact_magi_frac >= p.fpl_floor) & ( + exact_magi_frac <= p.fpl_limit + ) return pays_premium & tax_family_member & not_separate & within_band From cbf7d994f346dd2fc9f3accef759051ee7ab979f Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Wed, 18 Nov 2026 16:48:39 -0500 Subject: [PATCH 3/3] Apply New Jersey's income band once, in the member gate nj_njhps_eligible repeated the exact-ratio band that nj_njhps_member_eligible already applies, so it now relies on having an eligible member. The tax-unit eligibility cases supply pays_aca_premium so the member gate tests the band. Cases 7, 9, 11 and 13 now sit just below each band edge, pinning every edge from both sides. Co-Authored-By: Claude Opus 5.5 --- .../gov/states/nj/dobi/njhps/nj_njhps.yaml | 40 +++++++++---------- .../nj/dobi/njhps/nj_njhps_eligible.yaml | 24 +++++------ .../states/nj/dobi/njhps/nj_njhps_eligible.py | 35 ++++++---------- 3 files changed, 45 insertions(+), 54 deletions(-) diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml index 4be07f6c1dd..cc2c5f4896e 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps.yaml @@ -170,9 +170,9 @@ output: nj_njhps: 480 -- name: Case 7, just above 150% FPL moves to the $40 band. - # frac 1.51 >= 1.5 -> pmpm 40. base = 12*40 = 480. - # residual = max(0, 6_000 - 5_000) = 1_000 -> annual = min(480, 1_000) = 480. +- name: Case 7, just below 150% FPL stays in the $20 band. + # frac 1.49 < 1.5 -> pmpm 20. base = 12*20 = 240. + # residual = max(0, 6_000 - 5_000) = 1_000 -> annual = min(240, 1_000) = 240. period: 2026 absolute_error_margin: 0.01 input: @@ -183,7 +183,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 15_100 + aca_magi: 14_999 aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 @@ -192,7 +192,7 @@ members: [person1] state_code: NJ output: - nj_njhps: 480 + nj_njhps: 240 - name: Case 8, exactly 200% FPL is in the $50 band. # "At least 200% FPL but less than 250% FPL" -> pmpm 50. base = 12*50 = 600. @@ -218,9 +218,9 @@ output: nj_njhps: 600 -- name: Case 9, just above 200% FPL moves to the $50 band. - # frac 2.01 >= 2.0 -> pmpm 50. base = 12*50 = 600. - # residual = max(0, 8_000 - 5_000) = 3_000 -> annual = min(600, 3_000) = 600. +- name: Case 9, just below 200% FPL stays in the $40 band. + # frac 1.99 < 2.0 -> pmpm 40. base = 12*40 = 480. + # residual = max(0, 8_000 - 5_000) = 3_000 -> annual = min(480, 3_000) = 480. period: 2026 absolute_error_margin: 0.01 input: @@ -231,7 +231,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 20_100 + aca_magi: 19_999 aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 @@ -240,7 +240,7 @@ members: [person1] state_code: NJ output: - nj_njhps: 600 + nj_njhps: 480 - name: Case 10, exactly 250% FPL is in the $100 band. # "At least 250% FPL but less than 400% FPL" -> pmpm 100. base = 12*100 = 1_200. @@ -266,9 +266,9 @@ output: nj_njhps: 1_200 -- name: Case 11, just above 250% FPL moves to the $100 band. - # frac 2.51 >= 2.5 -> pmpm 100. base = 12*100 = 1_200. - # residual = max(0, 9_000 - 4_000) = 5_000 -> annual = min(1_200, 5_000) = 1_200. +- name: Case 11, just below 250% FPL stays in the $50 band. + # frac 2.49 < 2.5 -> pmpm 50. base = 12*50 = 600. + # residual = max(0, 9_000 - 4_000) = 5_000 -> annual = min(600, 5_000) = 600. period: 2026 absolute_error_margin: 0.01 input: @@ -279,7 +279,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 25_100 + aca_magi: 24_999 aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 @@ -288,7 +288,7 @@ members: [person1] state_code: NJ output: - nj_njhps: 1_200 + nj_njhps: 600 - name: Case 12, exactly 400% FPL is in the $50 band. # "At least 400% FPL but less than 450% FPL" -> pmpm 50. base = 12*50 = 600. @@ -314,9 +314,9 @@ output: nj_njhps: 600 -- name: Case 13, just above 400% FPL moves to the $50 band. - # frac 4.01 >= 4.0 -> pmpm 50. Above the APTC cliff aca_ptc is 0. - # base = 12*50 = 600. residual = max(0, 7_000 - 0) = 7_000 -> annual = 600. +- name: Case 13, just below 400% FPL stays in the $100 band. + # frac 3.99 < 4.0 -> pmpm 100. aca_ptc is supplied as 0. + # base = 12*100 = 1_200. residual = max(0, 7_000 - 0) = 7_000 -> annual = 1_200. period: 2026 absolute_error_margin: 0.01 input: @@ -327,7 +327,7 @@ tax_units: tax_unit: members: [person1] - aca_magi: 40_100 + aca_magi: 39_999 aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 @@ -336,7 +336,7 @@ members: [person1] state_code: NJ output: - nj_njhps: 600 + nj_njhps: 1_200 - name: Case 14, exactly 600% FPL stays in the $50 band. # frac 6.0 is NOT > 6.0001 (the ceiling is inclusive), so pmpm 50. base = 12*50 = 600. diff --git a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml index 82b5035da88..d3dae4651df 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nj/dobi/njhps/nj_njhps_eligible.yaml @@ -2,10 +2,10 @@ # # nj_njhps_eligible (TaxUnit, bool, YEAR) returns: # in_effect -# & (fpl_floor <= ratio <= fpl_limit) [1.38 <= ratio <= 6.0] +# & (count of nj_njhps_member_eligible > 0) +# The member gate applies fpl_floor <= ratio <= fpl_limit [1.38 <= ratio <= 6.0], # where ratio = max(aca_magi, 0) / aca_fpg, the exact ratio, not the truncated # aca_magi_fraction. Supplied-income cases pin aca_fpg to $10,000. -# & (count of nj_njhps_member_eligible > 0) # # in_effect is false before 2026-01-01 and true (open-ended) from 2026-01-01. # pays_aca_premium is supplied per person to control which members qualify. @@ -232,7 +232,7 @@ people: person1: age: 40 - nj_njhps_member_eligible: true + pays_aca_premium: true tax_units: tax_unit: members: [person1] @@ -251,7 +251,7 @@ people: person1: age: 40 - nj_njhps_member_eligible: true + pays_aca_premium: true tax_units: tax_unit: members: [person1] @@ -270,7 +270,7 @@ people: person1: age: 40 - nj_njhps_member_eligible: true + pays_aca_premium: true tax_units: tax_unit: members: [person1] @@ -289,7 +289,7 @@ people: person1: age: 40 - nj_njhps_member_eligible: true + pays_aca_premium: true tax_units: tax_unit: members: [person1] @@ -311,13 +311,13 @@ people: person_a: age: 30 - nj_njhps_member_eligible: false + pays_aca_premium: true claimable_as_dependent_on_another_return: true is_tax_unit_head: true is_tax_unit_spouse: false person_b: age: 30 - nj_njhps_member_eligible: true + pays_aca_premium: true is_tax_unit_head: false is_tax_unit_spouse: true tax_units: @@ -342,13 +342,13 @@ people: person_a: age: 30 - nj_njhps_member_eligible: false + pays_aca_premium: true claimable_as_dependent_on_another_return: true is_tax_unit_head: true is_tax_unit_spouse: false person_b: age: 30 - nj_njhps_member_eligible: true + pays_aca_premium: true is_tax_unit_head: false is_tax_unit_spouse: true tax_units: @@ -374,13 +374,13 @@ people: person_a: age: 30 - nj_njhps_member_eligible: false + pays_aca_premium: true claimable_as_dependent_on_another_return: true is_tax_unit_head: true is_tax_unit_spouse: false person_b: age: 30 - nj_njhps_member_eligible: true + pays_aca_premium: true is_tax_unit_head: false is_tax_unit_spouse: true tax_units: diff --git a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py index c2a1755ac28..b5830091e5e 100644 --- a/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py +++ b/policyengine_us/variables/gov/states/nj/dobi/njhps/nj_njhps_eligible.py @@ -21,29 +21,20 @@ class nj_njhps_eligible(Variable): ) documentation = ( "A tax unit is eligible for New Jersey Health Plan Savings when the " - "program is in effect, household income (ACA MAGI per 26 U.S.C. " - "36B(d)(2)) is at least 138% and at most 600% of the federal poverty " - "line (aca_fpg, the prior-year guideline for the section 36B tax " - "family), measured as the exact ratio rather than the truncated " - "aca_magi_fraction, and at least one member is an NJHPS enrollee. " - "Households below 138% FPL are routed to NJ FamilyCare/Medicaid rather " - "than NJHPS; the 138% floor is inclusive and the 600% ceiling is " - "inclusive. New Jersey residency is enforced by defined_for." + "program is in effect and at least one member is eligible under " + "nj_njhps_member_eligible, which requires household income (ACA MAGI " + "per 26 U.S.C. 36B(d)(2)) of at least 138% and at most 600% of the " + "federal poverty line (aca_fpg, the prior-year guideline for the " + "section 36B tax family), measured as the exact ratio rather than the " + "truncated aca_magi_fraction. Households below 138% FPL are routed to " + "NJ FamilyCare/Medicaid rather than NJHPS; the 138% floor is inclusive " + "and the 600% ceiling is inclusive. New Jersey residency is enforced " + "by defined_for." ) def formula(tax_unit, period, parameters): - p = parameters(period).gov.states.nj.dobi.njhps - in_effect = p.in_effect - # The exact ratio, not the truncated aca_magi_fraction, which maps - # 600.00%-600.99% to 6.00. nj_njhps_member_eligible explains the choice - # of aca_fpg as the poverty line. - 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_floor) & ( - exact_magi_frac <= p.fpl_limit - ) + in_effect = parameters(period).gov.states.nj.dobi.njhps.in_effect + # nj_njhps_member_eligible applies the 138-600% income band, so a unit + # with an eligible member has already passed it. has_eligible_member = add(tax_unit, period, ["nj_njhps_member_eligible"]) > 0 - return in_effect & income_eligible & has_eligible_member + return in_effect & has_eligible_member