diff --git a/changelog.d/co-premium-assistance-exact-fpl-ratio.fixed.md b/changelog.d/co-premium-assistance-exact-fpl-ratio.fixed.md new file mode 100644 index 00000000000..d0527ade15f --- /dev/null +++ b/changelog.d/co-premium-assistance-exact-fpl-ratio.fixed.md @@ -0,0 +1 @@ +Decide Colorado Premium Assistance's 400% 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` (Amended Regulation 4-2-78, 3 CCR 702-4, Section 4.C: household income "no greater than 400% of the Federal Poverty Level"). Under current law the federal premium tax credit gate already ends at 400%, so this changes results only when a reform extends the federal credit above 400%, where incomes from 400.003% to 400.994% were eligible. diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance.yaml index d8de5e7de74..d07d99437ad 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance.yaml @@ -1,8 +1,9 @@ # Unit tests for the Colorado Premium Assistance amount. # -# All inputs (is_aca_ptc_eligible 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. +# All inputs (is_aca_ptc_eligible 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. @@ -30,7 +31,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -57,7 +59,8 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 12_000 aca_ptc: 2_000 households: @@ -94,7 +97,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 20_000 aca_ptc: 3_000 households: @@ -140,7 +144,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5, person6, person7] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 25_000 aca_ptc: 4_000 households: @@ -164,7 +169,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 9_500 households: @@ -188,7 +194,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 8_000 households: @@ -200,7 +207,7 @@ co_premium_assistance: 0 - name: Case 7, ineligible unit (above 400% FPL) -> amount 0. - # aca_magi_fraction 4.50 > 4.0 -> co_premium_assistance_eligible false -> + # 45_000 / 10_000 = 4.50 > 4.0 -> co_premium_assistance_eligible false -> # where(eligible, annual, 0) returns 0. period: 2026 absolute_error_margin: 0.01 @@ -212,7 +219,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.50 + aca_magi: 45_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -234,7 +242,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -256,7 +265,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -281,7 +291,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 0 aca_ptc: 0 households: @@ -305,7 +316,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 7_040 households: @@ -346,7 +358,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5, person6] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 25_000 aca_ptc: 4_000 households: @@ -371,7 +384,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.01 + aca_magi: 10_100 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -407,7 +421,8 @@ tax_units: tax_unit: members: [person1, person2, person3] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 14_000 aca_ptc: 3_000 households: @@ -439,7 +454,8 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 14_000 aca_ptc: 3_000 households: @@ -477,7 +493,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 22_000 aca_ptc: 4_000 households: @@ -504,7 +521,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 8_000 aca_ptc: 9_000 households: @@ -531,7 +549,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 0.99 + aca_magi: 9_900 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -558,7 +577,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 0.99 + aca_magi: 9_900 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -592,7 +612,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 18_000 aca_ptc: 3_000 households: @@ -617,7 +638,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 0 households: @@ -642,7 +664,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 households: @@ -669,7 +692,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 takes_up_co_premium_assistance_if_eligible: false diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.yaml index d1d77641c84..becdb7086e5 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.yaml @@ -3,10 +3,15 @@ # SB26-178), the household is in Colorado, at least one member is eligible for # the federal ACA premium tax credit, and household ACA MAGI is at or below the # 400% FPL ceiling (upper = 4.0 as an FPL fraction). Regulation 4-2-78 Section -# 4.C sets a 400%-inclusive ceiling with NO lower bound, so there is no 100% FPL -# floor: a sub-100%-FPL unit with an is_aca_ptc_eligible member is eligible. -# is_aca_ptc_eligible and aca_magi_fraction are supplied directly so the gate -# logic is tested in isolation from the premium-data / FPL lookups. +# 4.C ("no greater than 400% of the Federal Poverty Level") sets a 400%-inclusive +# ceiling with NO lower bound, so there is no 100% FPL floor: a sub-100%-FPL unit +# with an is_aca_ptc_eligible member is eligible. The ceiling applies to the +# exact ratio of ACA MAGI to aca_fpg (the prior-year guideline for the section +# 36B tax family), not the truncated aca_magi_fraction. is_aca_ptc_eligible is +# supplied directly; supplied-income cases pin aca_fpg to $10,000 and set +# aca_magi to the target ratio, so the gate logic is tested in isolation from +# the premium-data / FPL lookups. Income-derived cases use the actual 2025 +# one-person guideline, $15,650. - name: Case 1, CO APTC-eligible unit at 250% FPL in 2026 is eligible. # in_effect true, one is_aca_ptc_eligible member, 1.0 <= 2.50 <= 4.0. @@ -19,7 +24,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -42,7 +48,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 0.99 + aca_magi: 9_900 + aca_fpg: 10_000 households: household: members: [person1] @@ -62,7 +69,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.00 + aca_magi: 10_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -80,7 +88,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.00 + aca_magi: 40_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -99,7 +108,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 4.01 + aca_magi: 40_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -118,7 +128,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -140,7 +151,8 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 households: household: members: [person1, person2] @@ -158,7 +170,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -177,7 +190,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -196,7 +210,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -215,7 +230,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 households: household: members: [person1] @@ -236,7 +252,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.01 + aca_magi: 10_100 + aca_fpg: 10_000 households: household: members: [person1] @@ -257,7 +274,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 3.99 + aca_magi: 39_900 + aca_fpg: 10_000 households: household: members: [person1] @@ -280,10 +298,179 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 0.50 + aca_magi: 5_000 + aca_fpg: 10_000 households: household: members: [person1] state_code: CO output: co_premium_assistance_eligible: false + +- name: Case 13, $62,599 (399.994% of the 2025 guideline) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 62_599 + households: + household: + members: [person1] + state_code: CO + output: + aca_magi_fraction: 3.99 + co_premium_assistance_eligible: true + +- name: Case 14, $62,600 (exactly 400%) is eligible. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 62_600 + households: + household: + members: [person1] + state_code: CO + output: + aca_magi_fraction: 4.00 + co_premium_assistance_eligible: true + +- name: Case 15, $62,600.47 (400.003%) is ineligible though truncated to 4.00. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 62_600.47 + households: + household: + members: [person1] + state_code: CO + output: + aca_magi_fraction: 4.00 + co_premium_assistance_eligible: false + +- name: Case 16, $62,755.56 (400.994%) is ineligible though truncated to 4.00. + period: 2026 + input: + people: + person1: + age: 40 + is_aca_ptc_eligible: true + tax_units: + tax_unit: + members: [person1] + aca_magi: 62_755.56 + households: + household: + members: [person1] + state_code: CO + output: + aca_magi_fraction: 4.00 + co_premium_assistance_eligible: false + +- name: Case 17, with the federal credit extended above 400%, 400.003% is still ineligible. + # A reform that keeps the premium tax credit above 400% FPL (the enhanced-credit + # extension) makes is_aca_ptc_eligible true at $62,600.47, so the Colorado + # ceiling alone decides. 400.003% is above "no greater than 400%". + period: 2026 + input: + gov.aca.ptc_income_eligibility[2].amount: true + people: + person1: + age: 40 + is_medicaid_eligible: false + is_chip_eligible: false + is_basic_health_program_eligible: false + is_aca_eshi_eligible: false + is_medicare_eligible: false + tax_units: + tax_unit: + members: [person1] + aca_magi: 62_600.47 + filing_status: SINGLE + households: + household: + members: [person1] + state_code: CO + output: + is_aca_ptc_eligible: [true] + co_premium_assistance_eligible: false + +- name: Case 18, a joint return with one claimable spouse at 400% 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: 62_600 / 15_650 = 4.00. + period: 2026 + input: + people: + person_a: + age: 30 + is_aca_ptc_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_aca_ptc_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 62_600 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: CO + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + co_premium_assistance_eligible: true + +- name: Case 19, the same return above 400% of the one-person guideline is ineligible. + # 70_000 / 15_650 = 4.47 > 4.0. Against the two-person guideline of the whole + # tax unit ($21,150) the ratio would be 3.31. + period: 2026 + input: + people: + person_a: + age: 30 + is_aca_ptc_eligible: false + claimable_as_dependent_on_another_return: true + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_aca_ptc_eligible: true + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + aca_magi: 70_000 + tax_unit_is_filer: true + households: + household: + members: [person_a, person_b] + state_code: CO + output: + aca_tax_family_size: 1 + aca_fpg: 15_650 + co_premium_assistance_eligible: false diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/integration.yaml index 84e73a3ad56..c5d62901441 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/doi/premium_assistance/integration.yaml @@ -7,8 +7,9 @@ # verified by SB26-178), unfunded thereafter. # # To keep expected values exactly hand-verifiable and independent of the -# rating-area premium lookup, is_aca_ptc_eligible (per person), aca_magi_fraction, -# slcsp (annual) and aca_ptc are supplied directly, and each scenario asserts the +# rating-area premium lookup, is_aca_ptc_eligible (per person), aca_magi against +# an aca_fpg pinned to $10,000, slcsp (annual) and aca_ptc are supplied directly, +# and each scenario asserts the # intermediate eligibility flag so a reviewer can follow the arithmetic: # n = count of is_aca_ptc_eligible members # flat_monthly = (80 + 29*(n-1)) if n >= 1 else 0 @@ -29,7 +30,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 1.50 + aca_magi: 15_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 2_400 households: @@ -60,7 +62,8 @@ tax_units: tax_unit: members: [person1, person2, person3] - aca_magi_fraction: 3.00 + aca_magi: 30_000 + aca_fpg: 10_000 slcsp: 14_000 aca_ptc: 4_000 households: @@ -103,7 +106,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4, person5, person6] - aca_magi_fraction: 4.00 + aca_magi: 40_000 + aca_fpg: 10_000 slcsp: 22_000 aca_ptc: 5_000 households: @@ -130,7 +134,8 @@ tax_units: tax_unit: members: [person1, person2] - aca_magi_fraction: 2.00 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 11_000 aca_ptc: 10_200 households: @@ -154,7 +159,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 7_500 aca_ptc: 7_500 households: @@ -179,7 +185,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 2_000 households: @@ -203,7 +210,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 9_000 aca_ptc: 2_000 households: @@ -224,13 +232,13 @@ # Single CO filer, employment_income 30_000, age 40, no ESHI -> marketplace enrollee. # DERIVED (hand-traced against the model source): # aca_magi = AGI = 30_000 (wages only, no adjustments/additions) - # prior-year FPG = 15_650 (2025 CONTIGUOUS_US, single; the fraction uses last_year) + # aca_fpg = 15_650 (2025 CONTIGUOUS_US guideline, one-person tax family) # aca_magi_fraction = floor(100 * 30_000 / 15_650) / 100 # = floor(191.69) / 100 = 1.91 -> inside the 100%-400% band # pays_aca_premium = true (citizen adult, has TIN, no ineligible coverage) # is_aca_ptc_eligible = pays_aca_premium & not-MFS & income-eligible = true # co_premium_assistance_eligible = in_effect(2026) & any(is_aca_ptc_eligible) - # & 1.0 <= 1.91 <= 4.0 = true + # & 30_000 / 15_650 = 1.917 <= 4.0 = true # slcsp and aca_ptc derive from the CO (Denver) rating-area premium table and the # required-contribution curve; the final amount is min(12*80, slcsp_annual - aca_ptc). # Values below read from the model run (slcsp is a MONTH-period variable; asserting @@ -291,7 +299,8 @@ tax_units: tax_unit: members: [person1, person2, person3, person4] - aca_magi_fraction: 2.00 + aca_magi: 20_000 + aca_fpg: 10_000 slcsp: 16_000 aca_ptc: 3_000 households: @@ -324,7 +333,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 assigned_aca_ptc: 0 @@ -365,7 +375,8 @@ tax_units: tax_unit: members: [person1] - aca_magi_fraction: 2.50 + aca_magi: 25_000 + aca_fpg: 10_000 slcsp: 10_000 aca_ptc: 2_000 takes_up_co_premium_assistance_if_eligible: false diff --git a/policyengine_us/variables/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.py b/policyengine_us/variables/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.py index e3f7d852c39..9edb75d095c 100644 --- a/policyengine_us/variables/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.py +++ b/policyengine_us/variables/gov/states/co/doi/premium_assistance/co_premium_assistance_eligible.py @@ -11,8 +11,10 @@ class co_premium_assistance_eligible(Variable): # in effect, at least one member is eligible for the federal ACA premium tax # credit (which embeds on-Marketplace enrollment and the required- # contribution income test), and household income is at or below the 400% - # federal poverty line ceiling. Regulation 4-2-78 Section 4.C sets a 400%- - # inclusive ceiling with no explicit lower bound. + # federal poverty line ceiling, on the exact ratio of ACA MAGI to aca_fpg + # (the prior-year guideline for the section 36B tax family). Regulation + # 4-2-78 Section 4.C sets a 400%-inclusive ceiling with no explicit lower + # bound. reference = ( # Amended Regulation 4-2-78 (3 CCR 702-4), Section 5.B and the 400%- # inclusive income ceiling in Section 4.C. Adopted via the DOI notice @@ -34,8 +36,17 @@ def formula(tax_unit, period, parameters): # exclusion, immigration/TIN status, and the required-contribution # income test. aptc_eligible = tax_unit.any(tax_unit.members("is_aca_ptc_eligible", period)) - # Regulation 4-2-78 Section 4.C caps eligibility at 400% FPL inclusive - # and states no lower bound. - magi_frac = tax_unit("aca_magi_fraction", period) - income_eligible = magi_frac <= p.fpl_limit.upper + # Regulation 4-2-78 Section 4.C defines an eligible enrollee by + # household income "no greater than 400% of the Federal Poverty Level" + # and states no lower bound. Test the exact ratio, not the truncated + # aca_magi_fraction: truncation maps 400.00%-400.99% to 4.00, which + # would admit incomes above 400%. The regulation doesn't define the + # guideline year or household size for the poverty line, so this uses + # aca_fpg, the line the federal credit required above divides by. + magi = max_(tax_unit("aca_magi", period), 0) + fpg = tax_unit("aca_fpg", period) + # Divide in float64: a float32 quotient can round a ratio just above + # a limit down onto it. + exact_magi_frac = magi.astype(np.float64) / fpg + income_eligible = exact_magi_frac <= p.fpl_limit.upper return aptc_eligible & income_eligible