Repository navigation
Compute Form 8906, the distilled spirits credit - #425
Merged
Merged
Conversation
In order to claim the distilled spirits credit of a wholesaler, distiller or importer, Form 8906 now figures every line: line 1 adds the cases of each lot (liters / 9 x proof / 80, to three places, as the instructions' example), line 3 multiplies by the printed 0.29717, line 4 adds the K-1 code AL credits, and line 5 goes to Form 3800 Part III line 1n as one own source next to the K-1s. A new fact kind (distilled_spirits.<slug>) holds the lots of a Schedule C business. The credit is neither income nor a lower deduction: the Schedule C lists name neither. A K-1 alone does not file the form (row A134), and each K-1 rounds before line 4 adds (row A133). The form moves out of formsWithNoRules.ts into creditForms.ts. The synthetic scenario chel (a Texas wholesaler with a K-1) fills every line. Co-Authored-By: Claude <noreply@anthropic.com>
A blind preparer filled 14 cases from the form alone. All lines match but case 6, where two K-1s with cents round each before the add (decision A133, the rule of row A96) instead of rounding the total once. The engine keeps the decision. PolicyEngine-US does not model the form. The open doubt on spirits stored over several years goes in QUESTIONS.md. Co-Authored-By: Claude <noreply@anthropic.com>
The law library is installed, so the notes that said section 5011 was not read were wrong. Section 5011(d)(2) counts a lot by liters divided by 9 only; the form's line 1 also multiplies by proof/80. The engine keeps the form's formula, and QUESTIONS.md now holds both texts for docs/law-findings.md. QUESTIONS.md is sorted under the three review headings, and rows A133 and A134 now say what the statute says. No value changes. Co-Authored-By: Claude <noreply@anthropic.com>
Join Form 8906 with Forms 8874, 8900, 8941 and 8932 from main. - Form 8906 is the last source in laterFormSources and in ENGINE_FORM_LINES. - Decision rows A133 and A134 of Form 8906 are now A143 and A144. Co-Authored-By: Claude <noreply@anthropic.com>
Join Form 8906 with Forms 8994 and 8896. - In laterFormSources, the order is Form 8994, Form 8896, then Form 8906. - Decision rows: A139 (Form 8994), A140 to A142 (Form 8896), then A143 and A144 (Form 8906). - Add a test: a figured Form 8932 credit and a figured Form 8994 credit on one business. Each credit lowers the wages once, and California gives both back. While the leave employees do not state the Form 8932 wages, Form 8994 waits. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
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 the credit of a wholesaler, distiller or importer of bottled distilled spirits, the engine now has rules for every line of Form 8906 and sends the credit to Form 3800.
What changed
docs/rule-decisions.md: each K-1 credit rounds on its own ($420.40 twice gives $840, not $841); a taxpayer whose only credit is on a K-1 puts it on Form 3800 and does not file Form 8906.Verified
npm test(196 checks) pass locally on the head withmainmerged in. Theall gatescheck on GitHub runs the rest.PDFs to review
Refs
🤖 Generated with Claude Code