Skip to content

Refresh the methodology FAQ for current models - #104

Merged
MaxGhenis merged 10 commits into
mainfrom
codex/3197-givecalc-pr93-draft-fold-the-methodology-card-in
Nov 30, 2026
Merged

MaxGhenis merged 10 commits into
mainfrom
codex/3197-givecalc-pr93-draft-fold-the-methodology-card-in

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Replaces the results page's methodology card with the Questions section (the FAQ), and adds Florida examples, the federal cash-gift limit, carryforwards, the marginal-savings estimate and the Gift Aid conditions. Builds on and supersedes #93.

  • The FAQ's figures come from frontend/src/lib/faqNumbers.json, API answers at the locked models (policyengine-us 2.154.3, policyengine-uk 2.134.6). It gains six Florida cases; the nine existing cases are unchanged. The regenerate job compares the file with the API at the PR's merge ref. Update policyengine-us to 2.156.4, with Wisconsin's 2026 ceiling #108 (policyengine-us 2.155.7) is separate, and this PR does not depend on it.
  • The federal text gives the order of the 2026 rules: the percentage limits first, then the 0.5% floor on what they allow. The Florida example states the full carryforward: $10,000 above the 60% limit plus the $1,250 the floor disallows (26 U.S.C. 170(d)(1)(A) and (C)). GiveCalc models no carryforward.
  • The Gift Aid text says a donor's Income Tax and Capital Gains Tax must together cover what charities and community amateur sports clubs can claim.
  • Tests check the rendered text against the figures, read the Florida link the way the app does, and find JSX that the Next.js build would join without a space.

A Codex cloud task wrote the refresh for Max Ghenis on top of #93 (queue file 3197-givecalc-pr93-draft-fold-the-methodology-card-in). The giving-season session adopted it on 2026-11-30.

Review

Round 1 (Sol, via Subfleet, at cbd2ae0) and an in-session review asked for changes; c71679c and b8a76c8 answer them. A scoped follow-up at b8a76c8 found three points to tighten; 0456e7c answers them. A full second round at 0456e7c raised nothing above P2. 7c6c355 and c69a5b5 answer its three wording findings: the Florida link names its amount, the FAQ says state and local taxes can count toward federal itemized deductions, and the Gift Aid text states relief band by band. 470a367 scopes that rule to earnings, because dividends and savings have their own rates (found on #107's review).

🤖 Generated with Claude Code

MaxGhenis and others added 4 commits October 24, 2026 07:47
The collapsible "How GiveCalc calculates" / "How Gift Aid works" card under
the results repeated the Questions section below it in hand-written copy
that no test checked. Remove it, and move the two true points the questions
lacked into them, each backed by production API runs and model checks:

- Why did my gift save little or nothing? now explains that a larger gift
  can save less on each extra dollar, once it brings taxable income into a
  lower bracket, and that the federal deduction for cash gifts stops at 60%
  of adjusted gross income. A Florida household earning $250,000 in 2026
  shows both: $10,000 more saves $3,200, then $2,400, then nothing past
  $150,000.
- What does GiveCalc leave out? now lists the five-year carryforward of cash
  gifts above that limit, which policyengine-us does not model.

tests/test_faq_numbers.py traces the Florida answer through the model: no
state or local income tax, AGI equal to wages, each step's saving equal to
the rate of the bracket its taxable income stays in, and a deduction that
stops at the 60% limit (charity.ceiling.all) less the 0.5% floor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The built page read "60%of your adjusted gross income". Next 16.2's SWC
drops the leading spaces of a JSX text that spans lines and holds an HTML
entity, so `to {cashLimit} of your` with `&ldquo;` later in the same text
compiled to ["to ", cashLimit, "of your …"]. Vitest compiles JSX another way
and kept the space, so the FAQ tests passed.

Put the space in an expression, as the FAQ already does for
`{us.year}{" "}deduction`, and add src/test/jsxWhitespace.test.ts. It
parses every component with TypeScript and fails on any JSX text of that
shape: leading spaces, a line break and an entity. It reports only this
line before the fix, and nothing in the rest of the frontend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
givecalc Ready Ready Preview Nov 30, 2026 12:45pm UTC

Request Review

…test

- The Florida example's gift above 60% of income saves nothing that year;
  it now says federal law carries the extra $10,000 forward up to five
  years, which GiveCalc does not model.
- The 60% paragraph adds that from 2026 itemizers deduct only gifts above
  0.5% of AGI.
- Gift Aid: the donor must pay at least as much UK income or capital
  gains tax as charities claim, or HMRC can ask for the difference;
  higher-rate donors claim their relief.
- Cite 170(d)(1)(A) for the general carryover.
- The Results test checks only for the removed explainer's button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis changed the base branch from claude/reconcile-methodology-explainer to main November 30, 2026 11:42
…once 2026 leaves the year list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ward, and Gift Aid's tax test

Itemizers subtract the 0.5% floor from what the percentage limits allow.
The $160,000 Florida gift carries forward $11,250: the $10,000 above the
60% limit and the $1,250 the floor disallows (26 U.S.C. 170(d)(1)(C)). A
donor's Income Tax and Capital Gains Tax together cover Gift Aid claims by
charities and community amateur sports clubs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… by band

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dividends and savings have their own rates, so the gap from the basic rate
does not give their relief. GiveCalc takes employment and self-employment
income.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 30, 2026 13:07
@MaxGhenis
MaxGhenis merged commit f0884e5 into main Nov 30, 2026
7 checks passed
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Merged on these reviews, all independent (Sol, via Subfleet): round 1, a scoped follow-up, and a full second round that raised nothing above P2. Commits 7c6c355, c69a5b5 and 470a367 fix its three P2s, and nothing else changed after it. All checks pass at 470a367. I read the Gift Aid answer in its rendered form, with sample figures, since the preview needs a login.

This branch was successfully deployed

1 active deployment
Preview – givecalc — 470a367b Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant