From 4bdb4d1977af777cc50952f33399a21f46ee0b4f Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Tue, 24 Nov 2026 13:48:01 -0500 Subject: [PATCH 1/3] Name the Basic Health Program and fix the explanations' wording Max's post-merge review of #37: in Minnesota, New York, Oregon and DC the cards show a Marketplace premium to adults their Basic Health Program covers. Until the API reports that coverage, the results name each state's program, its income limit as policyengine-us 2.138.2 models it, and a link to it. - The work requirement explanation says it applies to the expansion group (Pavel's suggestion 4) and that the estimate assumes no exemption (Max's wording). - The three explanations without a year now name it, so they don't read as describing a 2026 card that shows a credit. - #37's changelog fragment no longer credits an Idaho fix to the AI explanation it removed. Co-Authored-By: Claude Opus 5.5 --- changelog.d/aca-2027-overview.fixed.md | 2 +- changelog.d/bhp-note-wording.fixed.md | 1 + src/components/Calculator.css | 6 +++ src/components/CalculatorResults.jsx | 68 +++++++++++++++++++++++--- 4 files changed, 68 insertions(+), 9 deletions(-) create mode 100644 changelog.d/bhp-note-wording.fixed.md diff --git a/changelog.d/aca-2027-overview.fixed.md b/changelog.d/aca-2027-overview.fixed.md index eb137bc..c5af35e 100644 --- a/changelog.d/aca-2027-overview.fixed.md +++ b/changelog.d/aca-2027-overview.fixed.md @@ -1 +1 @@ -Treat Idaho as a Medicaid expansion state in the calculator's AI explanation. The Overview and the Methodology tab name KFF as the source of the model's 2026 and 2027 benchmark premiums, the Overview says both examples above 400% FPL live in their state's highest-cost rating area, and it gives where H.R. 1834's credit would end for the Pennsylvania example from the benchmark premium (about $174,550) instead of the last $1,000 step with a credit. The calculator's "Your household" tab asks for earnings, up to $1,000,000, and its cards come from the API at the earnings entered instead of from between the income axis's $1,000 steps, so they no longer blend the incomes on either side of an eligibility limit or of the jump in the share of income at 133% FPL, and Alaska's dividend counts toward the 400% FPL limit. Its text names Medicaid and CHIP only for the members they cover, says a state hasn't expanded Medicaid only where that's true, explains Medicaid's 2027 work requirement, and in the coverage gap shows what a plan costs without a credit. The cards' monthly change lines now match the payments shown, and the charts place 400% FPL on the credit's income. The contribution schedule charts no longer clip their x-axis title, and the marginal tax rate chart's 400% FPL label no longer covers the cliff. A link straight to the calculator or the Methodology tab no longer causes a hydration error, and a calculator link opened on the page (pasted, or with back and forward) now shows that link's household. +The Overview and the Methodology tab name KFF as the source of the model's 2026 and 2027 benchmark premiums, the Overview says both examples above 400% FPL live in their state's highest-cost rating area, and it gives where H.R. 1834's credit would end for the Pennsylvania example from the benchmark premium (about $174,550) instead of the last $1,000 step with a credit. The calculator's "Your household" tab asks for earnings, up to $1,000,000, and its cards come from the API at the earnings entered instead of from between the income axis's $1,000 steps, so they no longer blend the incomes on either side of an eligibility limit or of the jump in the share of income at 133% FPL, and Alaska's dividend counts toward the 400% FPL limit. Its text names Medicaid and CHIP only for the members they cover, says a state hasn't expanded Medicaid only where that's true, explains Medicaid's 2027 work requirement, and in the coverage gap shows what a plan costs without a credit. The cards' monthly change lines now match the payments shown, and the charts place 400% FPL on the credit's income. The contribution schedule charts no longer clip their x-axis title, and the marginal tax rate chart's 400% FPL label no longer covers the cliff. A link straight to the calculator or the Methodology tab no longer causes a hydration error, and a calculator link opened on the page (pasted, or with back and forward) now shows that link's household. diff --git a/changelog.d/bhp-note-wording.fixed.md b/changelog.d/bhp-note-wording.fixed.md new file mode 100644 index 0000000..7d4ac98 --- /dev/null +++ b/changelog.d/bhp-note-wording.fixed.md @@ -0,0 +1 @@ +In Minnesota, New York, Oregon and DC, the calculator's results name the state's Basic Health Program, which covers adults aged 19 to 64 with incomes above Medicaid's limit up to 200% FPL (250% in New York in 2026), and say the results don't include it yet. The explanation of Medicaid's work requirement says it applies to the expansion group and that the estimate assumes no exemption, and three explanations now name their year. diff --git a/src/components/Calculator.css b/src/components/Calculator.css index b25d3ca..50059a2 100644 --- a/src/components/Calculator.css +++ b/src/components/Calculator.css @@ -593,6 +593,12 @@ font-size: 0.875rem; } +.results-notice a { + color: inherit; + font-weight: 600; + text-decoration: underline; +} + .impact-breakdown { margin: var(--pe-space-md) 0 0 0; font-size: 0.8125rem; diff --git a/src/components/CalculatorResults.jsx b/src/components/CalculatorResults.jsx index d45a3ca..2d69033 100644 --- a/src/components/CalculatorResults.jsx +++ b/src/components/CalculatorResults.jsx @@ -60,6 +60,55 @@ function describeMembers(indices, people) { const isCovered = (member) => member.medicaid || member.chip; +// Each state's Basic Health Program, as policyengine-us 2.138.2 models it +// (gov.hhs.basic_health_program): adults aged 19 to 64 with incomes above +// Medicaid's limit up to 200% FPL, or 250% for New York in 2026. People it +// covers can't enroll in a Marketplace plan (42 U.S.C. 18051(e)), but the API +// doesn't report this coverage yet, so the results name the program instead. +const BASIC_HEALTH_PROGRAMS = { + DC: { + state: "DC", + name: "the Healthy DC Plan", + limit: "200% FPL", + url: "https://hbx.dc.gov/sites/default/files/dc/sites/hbx/page_content/attachments/Healthy%20DC%20Plan%20Overview%20-%20October%202025.pdf", + }, + MN: { + state: "Minnesota", + name: "MinnesotaCare", + limit: "200% FPL", + url: "https://mn.gov/dhs/health-care/minnesotacare/", + }, + NY: { + state: "New York", + name: "the Essential Plan", + limit: "200% FPL, or 250% FPL in 2026", + url: "https://info.nystateofhealth.ny.gov/EssentialPlan", + }, + OR: { + state: "Oregon", + name: "OHP Bridge", + limit: "200% FPL", + url: "https://www.oregon.gov/oha/ohp/pages/bridge.aspx", + }, +}; + +function BasicHealthProgramNote({ state }) { + const program = BASIC_HEALTH_PROGRAMS[state]; + if (!program) return null; + return ( +

+ {program.state}'s Basic Health Program, {program.name}, covers adults aged 19 to 64 with + incomes above Medicaid's limit and up to {program.limit}. People it covers can't enroll in a + Marketplace plan or get a premium tax credit. These results don't include {program.name} yet, + so at those incomes they show what a Marketplace plan would cost.{" "} + + Learn about {program.name} + + . +

+ ); +} + // "Medicaid would cover your children, and CHIP would cover ...", naming each // program only for the members it covers. function coverageSentence(coverage, people) { @@ -118,8 +167,8 @@ function Explanation({ answer, state, year, compareEnhanced }) { // not the credit's, so the share of the credit's guideline isn't named. return (

- At this income, {coverageSentence(current.coverage, people)}. Premium tax credits are not - available to people eligible for these programs. + At this income in {year}, {coverageSentence(current.coverage, people)}. Premium tax credits + are not available to people eligible for these programs.

); } @@ -144,9 +193,11 @@ function Explanation({ answer, state, year, compareEnhanced }) { // earnings of 80 hours a month at the federal minimum wage ($7.25). reason = ( <> - {who} wouldn't qualify for Medicaid: from 2027, Medicaid requires most adults - aged 19 to 64 to work or do other qualifying activities for 80 hours a month, which the - model counts as earnings of at least $580 a month. Premium tax credits start at 100% FPL. + {who} wouldn't qualify for Medicaid: from 2027, Medicaid requires most adults in the + expansion group, aged 19 to 64, to work or do other qualifying activities for 80 hours a + month, which the model counts as earnings of at least $580 a month. The {year} estimate + assumes no qualifying activity beyond these earnings and no exemption. Premium tax credits + start at 100% FPL. ); } else if (!EXPANSION_STATES.includes(state)) { @@ -165,7 +216,7 @@ function Explanation({ answer, state, year, compareEnhanced }) { } return (

- {lead}At {fpl}% FPL, {reason} + {lead}In {year}, at {fpl}% FPL, {reason}

); } @@ -199,8 +250,8 @@ function Explanation({ answer, state, year, compareEnhanced }) { return (

- {lead}At {fpl}% FPL, the benchmark plan costs less than the share of income current law asks - your household to pay, so it receives no credit.{" "} + {lead}In {year}, at {fpl}% FPL, the benchmark plan costs less than the share of income current + law asks your household to pay, so it receives no credit.{" "} {compareEnhanced && revived && (revived.credit > 0 @@ -294,6 +345,7 @@ function CalculatorResults({

+ {(activeTab === "net" || activeTab === "credit") && data && ( <>
From b78435902e4517281ea2018b083327f42d9238a2 Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:07:15 -0500 Subject: [PATCH 2/3] Correct the note's charts sentence and New York's limit From Pavel's review of #45: - The note says the "Your household" cards show a Marketplace plan's cost and the charts show $0, since the note shows on every tab. - New York's 250% FPL limit ended on June 30, 2026, when its section 1332 waiver did. - Where a state with a Basic Health Program has no plan priced above 100% FPL, the explanation names the program as the reason for no credit. Co-Authored-By: Claude Opus 5.5 --- changelog.d/bhp-note-wording.fixed.md | 2 +- src/components/CalculatorResults.jsx | 27 +++++++++++++++++++++------ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/changelog.d/bhp-note-wording.fixed.md b/changelog.d/bhp-note-wording.fixed.md index 7d4ac98..564d9d6 100644 --- a/changelog.d/bhp-note-wording.fixed.md +++ b/changelog.d/bhp-note-wording.fixed.md @@ -1 +1 @@ -In Minnesota, New York, Oregon and DC, the calculator's results name the state's Basic Health Program, which covers adults aged 19 to 64 with incomes above Medicaid's limit up to 200% FPL (250% in New York in 2026), and say the results don't include it yet. The explanation of Medicaid's work requirement says it applies to the expansion group and that the estimate assumes no exemption, and three explanations now name their year. +In Minnesota, New York, Oregon and DC, the calculator's results name the state's Basic Health Program, which covers adults aged 19 to 64 with incomes above Medicaid's limit up to 200% FPL (250% in New York until June 30, 2026), and say the results don't include it yet. Where the model gives no credit because the program covers the household, the explanation names the program as the reason. The explanation of Medicaid's work requirement says it applies to the expansion group and that the estimate assumes no exemption, and three explanations now name their year. diff --git a/src/components/CalculatorResults.jsx b/src/components/CalculatorResults.jsx index 2d69033..afdd517 100644 --- a/src/components/CalculatorResults.jsx +++ b/src/components/CalculatorResults.jsx @@ -62,9 +62,11 @@ const isCovered = (member) => member.medicaid || member.chip; // Each state's Basic Health Program, as policyengine-us 2.138.2 models it // (gov.hhs.basic_health_program): adults aged 19 to 64 with incomes above -// Medicaid's limit up to 200% FPL, or 250% for New York in 2026. People it -// covers can't enroll in a Marketplace plan (42 U.S.C. 18051(e)), but the API -// doesn't report this coverage yet, so the results name the program instead. +// Medicaid's limit up to 200% FPL. New York's limit was 250% until its section +// 1332 waiver ended on June 30, 2026; the model's eligibility is annual, so it +// keeps 250% for all of 2026. People the program covers can't enroll in a +// Marketplace plan (42 U.S.C. 18051(e)), but the API doesn't report this +// coverage yet, so the results name the program instead. const BASIC_HEALTH_PROGRAMS = { DC: { state: "DC", @@ -81,7 +83,7 @@ const BASIC_HEALTH_PROGRAMS = { NY: { state: "New York", name: "the Essential Plan", - limit: "200% FPL, or 250% FPL in 2026", + limit: "200% FPL (250% FPL until June 30, 2026)", url: "https://info.nystateofhealth.ny.gov/EssentialPlan", }, OR: { @@ -99,8 +101,9 @@ function BasicHealthProgramNote({ state }) {

{program.state}'s Basic Health Program, {program.name}, covers adults aged 19 to 64 with incomes above Medicaid's limit and up to {program.limit}. People it covers can't enroll in a - Marketplace plan or get a premium tax credit. These results don't include {program.name} yet, - so at those incomes they show what a Marketplace plan would cost.{" "} + Marketplace plan or get a premium tax credit. These results don't include {program.name} yet: + at those incomes, the "Your household" cards show what a Marketplace plan would cost, and the + charts show $0.{" "} Learn about {program.name} @@ -248,6 +251,18 @@ function Explanation({ answer, state, year, compareEnhanced }) { ); } + // Above 100% FPL, where a state with a Basic Health Program has no plan + // priced for the members left, the model has the program covering them. + const program = BASIC_HEALTH_PROGRAMS[state]; + if (program && values.gap) { + return ( +

+ {lead}In {year}, at {fpl}% FPL, {program.name} would cover {who}, so the model gives no + credit.{compareEnhanced && revived?.gap && " H.R. 1834 wouldn't change this."} +

+ ); + } + return (

{lead}In {year}, at {fpl}% FPL, the benchmark plan costs less than the share of income current From a9bd288a14dc6bace55e6c6a748a8f6737bace00 Mon Sep 17 00:00:00 2001 From: PavelMakarchuk Date: Wed, 25 Nov 2026 14:50:07 -0500 Subject: [PATCH 3/3] Name the Basic Health Program only for members aged 19 to 64 The explanation named the state's Basic Health Program whenever the model priced no plan above 100% FPL. The model also prices no plan for members aged 65 or older, whom Medicare rules out of the credit, so a 66-year-old in Minnesota at 313% FPL read that MinnesotaCare would cover them. Those members now read that Medicare rules out the credit, in every state. Co-Authored-By: Claude Opus 5.5 --- changelog.d/bhp-note-wording.fixed.md | 2 +- src/components/CalculatorResults.jsx | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/changelog.d/bhp-note-wording.fixed.md b/changelog.d/bhp-note-wording.fixed.md index 564d9d6..3f97a8f 100644 --- a/changelog.d/bhp-note-wording.fixed.md +++ b/changelog.d/bhp-note-wording.fixed.md @@ -1 +1 @@ -In Minnesota, New York, Oregon and DC, the calculator's results name the state's Basic Health Program, which covers adults aged 19 to 64 with incomes above Medicaid's limit up to 200% FPL (250% in New York until June 30, 2026), and say the results don't include it yet. Where the model gives no credit because the program covers the household, the explanation names the program as the reason. The explanation of Medicaid's work requirement says it applies to the expansion group and that the estimate assumes no exemption, and three explanations now name their year. +In Minnesota, New York, Oregon and DC, the calculator's results name the state's Basic Health Program, which covers adults aged 19 to 64 with incomes above Medicaid's limit up to 200% FPL (250% in New York until June 30, 2026), and say the results don't include it yet. Where the model gives no credit because the program covers the household, the explanation names the program as the reason, but only for members aged 19 to 64; members aged 65 or older are told that Medicare rules out the credit. The explanation of Medicaid's work requirement says it applies to the expansion group and that the estimate assumes no exemption, and three explanations now name their year. diff --git a/src/components/CalculatorResults.jsx b/src/components/CalculatorResults.jsx index afdd517..5f0ab04 100644 --- a/src/components/CalculatorResults.jsx +++ b/src/components/CalculatorResults.jsx @@ -251,10 +251,23 @@ function Explanation({ answer, state, year, compareEnhanced }) { ); } + // The model prices no plan for members aged 65 or older, since Medicare + // rules out the credit (26 U.S.C. 36B(c)(2)(B)). + const ages = uncovered.map((i) => people[i].age); + if (values.gap && ages.every((age) => age >= 65)) { + return ( +

+ {lead}In {year}, {who} would qualify for Medicare at age 65 or older, and people eligible for + Medicare can't get a premium tax credit. +

+ ); + } + // Above 100% FPL, where a state with a Basic Health Program has no plan - // priced for the members left, the model has the program covering them. + // priced for the members left, the model has the program covering them. It + // covers only adults aged 19 to 64. const program = BASIC_HEALTH_PROGRAMS[state]; - if (program && values.gap) { + if (program && values.gap && ages.every((age) => age >= 19 && age <= 64)) { return (

{lead}In {year}, at {fpl}% FPL, {program.name} would cover {who}, so the model gives no