Repository navigation
Compute FTB 3547, California's credit for hauling donated farm products - #433
Merged
Merged
Conversation
…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>
This was referenced Nov 28, 2026
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.
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.
What changed
docs/rule-decisions.md).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
npm test(200 checks) pass locally on the head withmainmerged in. Theall gatescheck on GitHub runs the rest.PDFs to review
Refs
🤖 Generated with Claude Code