Skip to content

Compute FTB 3547, California's credit for hauling donated farm products - #433

Merged
captaincole merged 6 commits into
mainfrom
ca-3547
Nov 28, 2026
Merged

captaincole merged 6 commits into
mainfrom
ca-3547

Conversation

@captaincole

Copy link
Copy Markdown
Owner

In order to compute California's credit for hauling donated food to a charity, the engine now has rules for every line of FTB 3547 and puts the credit on Form 540.

  • Risk: high — the credit joins the list of credits on Form 540 lines 43 to 45, and it adds income back on Schedule CA. No value of an existing scenario changes.

What changed

  • FTB 3547 has rules for every line: 50% of the transport costs, plus a credit from Schedule K-1 and last year's carryover, used up to the tax above the tentative minimum tax.
  • The credit goes on Schedule P (540) Section A2 and Form 540 lines 43 to 45, after the credits already there (row A148 in docs/rule-decisions.md).
  • California allows no deduction for the part of the costs that gives the credit, so Schedule CA adds the credit back to business income.
  • Form 540NR: a named gap.
  • Two new made-up taxpayers, Padan and Jori, lock the values.

Example outcome

Padan spends $14,800 to haul donated produce. The credit is $7,400, and with a K-1 credit and a carryover she has $10,850. Her tax takes $5,372 (Form 540 line 43); $5,478 carries over. Schedule CA adds $7,400 back to her business income.

Verified

  • Typecheck, lint, format and npm test (200 checks) pass locally on the head with main merged in. The all gates check on GitHub runs the rest.
  • A blind fill by hand from the form's text matched the engine.
  • Not run: the e2e, and no comparison with a filed return.

PDFs to review

Refs

🤖 Generated with Claude Code

captaincole and others added 6 commits November 28, 2026 01:52
…credit

A business that hauls donated food to a charity claims half of the transport
costs in California. FTB 3547 now has a rule for every field, so the credit
reaches Form 540 and the deduction for the same costs is taken back.

- New fact kind: the taxpayer's own costs (mileage at $.14 or actual, and
  where they were deducted), one pass-through credit per K-1, and the 2024
  carryover.
- Lines 1 to 6 add the credit. Line 7a is Schedule P (540) Section A2
  column (b), code 204, after the film and LAMBRA credits (decision A135).
  Line 7b is 0 for an individual, line 7c is 0 with Form 540 line 35 at
  $5,000,000 or less, and line 8 carries the rest, the tax-limited part
  included.
- A Section A2 credit attaches Schedule P (540). Form 540 lines 43 to 45
  and Schedule S line 2 take the credit as the other credits.
- Schedule CA (540) column C: line 2 on line 3 (Schedule C) or line 6
  (Schedule F), line 3 on line 5 (the K-1).
- Unsupported: a disregarded SMLLC, Form 540NR (Form 540NR lines 58 to 63
  name FTB 3547), line 35 above $5,000,000, a fourth Section A2 credit, and
  a K-1 credit with FTB 3801.
- Synthetic scenarios padan (actual costs, K-1, carryover, limited by the
  tax) and jori (mileage, Schedule F, used in full). No existing value
  changed.

Co-Authored-By: Claude <noreply@anthropic.com>
A blind preparer filled 13 cases from the form and instructions only.
Every dollar amount matched the engine; the other differences are
blank against 0. QUESTIONS.md now records the preparer's doubts that
change dollars (the Pub. 1001 reading of the Schedule CA amount, the
K-1 part on line 5, the mileage credit against the deduction), and
that PolicyEngine-US does not model this credit.

Co-Authored-By: Claude <noreply@anthropic.com>
The tax review found that no scenario showed Schedule S line 2 with an
FTB 3547 credit: only a unit test checked that line 2 is Form 540 line
35 less the credit. The made-up taxpayer jori now pays Utah tax on her
fruit stand, so her return files Schedule S. Line 2 is 6,619 - 648 =
5,971 and Form 540 line 44 takes the 860 other state tax credit.
QUESTIONS.md is sorted into conflicts, items to do now and pattern
changes.

Co-Authored-By: Claude <noreply@anthropic.com>
Main adds rows A135 to A138 to docs/rule-decisions.md. The FTB 3547 row
moves from A135 to A139. No other file refers to the row.

Co-Authored-By: Claude <noreply@anthropic.com>
Both forms add a credit to the California credit chain. Keep both:
- Form 540 lines 43 to 45 list FTB 3547's credit (code 204, Section A2)
  after the LAMBRA credit, and FTB 3503's credit (code 213, Section B2)
  after the TTA credit, in Schedule P (540) order.
- Schedule S line 2 subtracts each credit once, in the same order.
- laterForms.ts, the OPTIONAL list of requiredInputs.test.ts and the
  form registries keep the entries of both forms.
- docs/rule-decisions.md: the FTB 3503 row is A147 and the FTB 3547 row
  is A148. Rows A139 to A146 stay free for four federal forms.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
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