Repository navigation
Conversation
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 `“` 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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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
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
marked this pull request as ready for review
November 30, 2026 13:07
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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. Theregeneratejob 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.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