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..d11318ef249 --- /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 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 b8a97a386f6..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,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 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: # 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 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 + # 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..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,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 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). @@ -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,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -96,7 +98,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -125,7 +128,8 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_200 households: @@ -153,7 +157,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.2 + aca_magi: 12_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 4_000 households: @@ -181,7 +186,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.5 + aca_magi: 25_000 + aca_fpg: 10_000 filing_status: SEPARATE slcsp: 9_000 aca_ptc: 4_000 @@ -211,7 +217,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -231,10 +238,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 +252,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -262,7 +270,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 +284,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -307,7 +316,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_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 dda7665f27a..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 @@ -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 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 # 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,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 households: @@ -55,7 +58,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.8 + aca_magi: 18_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -78,7 +82,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -101,7 +106,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -126,7 +132,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -136,11 +143,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 +159,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.5 + aca_magi: 15_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -159,11 +168,11 @@ 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. - # 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: @@ -174,7 +183,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.51 + aca_magi: 14_999 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -182,11 +192,11 @@ members: [person1] state_code: NJ output: - nj_njhps: 480 + nj_njhps: 240 -- 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 +207,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -205,11 +216,11 @@ 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. - # 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: @@ -220,7 +231,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.01 + aca_magi: 19_999 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -228,11 +240,11 @@ members: [person1] state_code: NJ output: - nj_njhps: 600 + nj_njhps: 480 -- 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 +255,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.5 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -251,11 +264,11 @@ 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. - # 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: @@ -266,7 +279,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.51 + aca_magi: 24_999 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 4_000 households: @@ -274,11 +288,11 @@ members: [person1] state_code: NJ output: - nj_njhps: 1_200 + nj_njhps: 600 -- 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 +303,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 1_000 households: @@ -297,11 +312,11 @@ 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. - # 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: @@ -312,7 +327,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 39_999 + aca_fpg: 10_000 slcsp: 7_000 aca_ptc: 0 households: @@ -320,10 +336,10 @@ 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, 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 +351,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -357,7 +374,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -384,7 +402,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -412,7 +431,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.45 + aca_magi: 14_500 + aca_fpg: 10_000 slcsp: 5_100 aca_ptc: 5_000 households: @@ -435,7 +455,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.45 + aca_magi: 14_500 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 5_000 households: @@ -461,7 +482,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 5_000 aca_ptc: 5_000 households: @@ -485,7 +507,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.3 + aca_magi: 13_000 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -509,7 +532,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 0 households: @@ -533,7 +557,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -557,7 +582,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 5_000 households: @@ -588,7 +614,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 0 aca_ptc: 0 households: @@ -614,7 +641,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 5_600 aca_ptc: 5_000 households: @@ -631,10 +659,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 +674,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.0 + aca_magi: 40_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -657,8 +686,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 +701,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -700,7 +730,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 8_000 households: @@ -728,7 +759,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 30_000 aca_ptc: 5_000 households: @@ -755,7 +787,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + aca_fpg: 10_000 slcsp: 6_000 aca_ptc: 3_000 households: @@ -783,7 +816,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.2 + aca_magi: 22_000 + aca_fpg: 10_000 slcsp: 5_000 aca_ptc: 6_000 households: @@ -793,6 +827,30 @@ 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 + - name: 2026 NJ joint return with one claimable spouse (the claimable spouse is the head) period: 2026 absolute_error_margin: 0.01 @@ -831,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 @@ -873,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 @@ -954,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 ca24a904635..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,8 +2,10 @@ # # nj_njhps_eligible (TaxUnit, bool, YEAR) returns: # in_effect -# & (fpl_floor <= aca_magi_fraction <= fpl_limit) [1.38 <= frac <= 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. # # 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. @@ -20,7 +22,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -41,7 +44,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.37 + aca_magi: 13_700 + aca_fpg: 10_000 households: household: members: [person1] @@ -60,7 +64,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + aca_fpg: 10_000 households: household: members: [person1] @@ -81,7 +86,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -100,7 +106,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -122,7 +129,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -144,7 +152,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -165,7 +174,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -187,7 +197,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -206,10 +217,183 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 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 + 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_eligible: true + +- name: Case 12, $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_eligible: false + +- name: Case 13, $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_eligible: false + +- name: Case 14, $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_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 + 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: + 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 + 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: + 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 + 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: 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 095bbeaa877..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 @@ -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) / 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_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 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). # --- pays_aca_premium gate --- @@ -24,7 +27,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -42,7 +46,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -64,7 +69,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 filing_status: SEPARATE households: household: @@ -86,7 +92,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.37 + aca_magi: 13_700 + aca_fpg: 10_000 households: household: members: [person1] @@ -105,7 +112,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.38 + aca_magi: 13_800 + aca_fpg: 10_000 households: household: members: [person1] @@ -124,7 +132,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.0 + aca_magi: 60_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -143,7 +152,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 6.01 + aca_magi: 60_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -166,7 +176,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 5.0 + aca_magi: 50_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -187,7 +198,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -210,7 +222,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.0 + aca_magi: 20_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -235,7 +248,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.0 + aca_magi: 30_000 + aca_fpg: 10_000 households: household: members: [person1, person2, person3, person4] @@ -260,7 +274,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: -0.5 + aca_magi: -5_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -268,6 +283,82 @@ 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] + - name: 2026 NJ a spouse who can be claimed elsewhere is not an NJHPS member (the claimable spouse is the head) period: 2026 input: @@ -343,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 558647c50a9..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 @@ -10,23 +10,31 @@ 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." + "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 - magi_fraction = tax_unit("aca_magi_fraction", period) - income_eligible = (magi_fraction >= p.fpl_floor) & ( - magi_fraction <= 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 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 2578759eebe..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 " @@ -40,8 +48,24 @@ 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. + # 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) + 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 @@ -58,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