Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/rule-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ A row that names a pull request is in the code of that branch until it merges.
| A145 | 2026-11-27 | Form 8908 / Form 3800 | Form 8908 gives a homebuilder a credit for each new energy efficient home sold or leased; line 7 adds the same credit passed through on partnership and S corporation K-1s (code AM). With K-1s that show cents, is each K-1 rounded before the add, or only the total? | Form 1040 instructions: "include cents when adding the amounts and round off only the total" (`irs-1040-inst-2025::sec::rounding-off-to-whole::b01`). | Line 8 goes to Form 3800 line 1p (`irs-8908-face-2025::sec::face-page-2::b01`), whose Part V lists each pass-through entity's credit by its EIN, one whole-dollar amount each (`irs-3800-inst-2025::sec::part-v-3::b01`). | Text B, the same rule as row A96 (Form 8846 line 5) and Form 8826 line 7: each K-1 rounds first, so line 8 equals Form 3800 line 1p. | At most $1 for each K-1. | `federal/8908/resolveInfo.ts` | Silent: the statute sets no rounding. |
| A146 | 2026-11-27 | Form 8908 | Items A to C ask, for each home the builder claims, whether the builder built it, had a basis in it and had it certified before the sale. One of several homes answers No. Is the credit lost for every home, or only for that one? | The items: "For each home for which you are claiming the credit, ..." (`irs-8908-inst-2025::sec::specific-instructions::b01`). | The form: "If you answered 'No' to question A, B, or C, STOP, you cannot claim the credit" (`irs-8908-face-2025::sec::face-page-1::b02`). | Text A: a home that answers No is not claimed, and the items show Yes for the homes that are. The form stops only when no home is left. The credit is "for each qualified new energy efficient home" (`irs-8908-inst-2025::sec::purpose-of-form::b01`), so one home that fails does not take the others' credit away. | Yes: in the made-up taxpayer `edelle`, a house that was not certified in time loses its $2,500, not the whole $20,000. | `federal/8908/resolveInfo.ts` | 45L(a)(1): supports. The credit is "the applicable amount for each qualified new energy efficient home". |
| A147 | 2026-11-28 | FTB 3503 / Schedule P (540) | FTB 3503 gives a California credit of 55% of the value of land given with the Wildlife Conservation Board's approval. On Schedule P (540) it is one of the Section B2 credits that share the tax left, one after another. Where does it go in that order? | Section B2: "Generally, it is to your advantage to apply credits with limited carryovers before credits with no limitation on carryover. However, you may apply credits with no limitation on carryover first, if that is to your advantage" (`ca-540-sched-p-inst-2025::sec::section-b2-instructions::b01`). | FTB 3503: a credit from 2015 on carries over "15 years or until exhausted" (`ca-3503-form-2025::sec::f-carryover::b01`); the low-income housing credit is "required to be applied after any business credits are applied" (`ca-540-sched-p-inst-2025::sec::how-to-compute-the-limitation::b01`); the enterprise zone and TTA carryovers have 10 years (A90 to A92). | After the motion picture, enterprise zone and TTA credits, before the research, orphan drug and low-income housing credits: a limited carryover goes before an unlimited one, and the longer 15-year carryover after the 10-year ones. One order for every return. | None in the made-up taxpayer `kari` (one credit). Only when the tax left cannot cover all: with a $10,000 TTA carryover, $20,000 of this credit and $25,000 of tax, the TTA credit takes $10,000 and this credit $15,000 (the other order: $20,000 and $5,000). | `state/ca/3503/creditUsed.ts` | Silent on the order. R&TC 17053.30(d)(2) sets the 15-year carryover (`ca-rtc-2025::sec::s17053.30::d`). |
| A148 | 2026-11-28 | FTB 3547, Schedule P (540) | FTB 3547 gives a business that hauls donated food to a charity a California credit of half the transport costs (code 204); it offsets tax in Schedule P (540) Section A2, next to FTB 3541's motion picture credits and FTB 3807's LAMBRA credit. In what order are they used? | Section A2: "complete column (a) through column (d) for each credit in each section before going to the next section" (`ca-540-sched-p-inst-2025::sec::section-a2-instructions::b01`): no order inside the section. | Section B2's general rule, credits "with limited carryovers before credits with no limitation" (`::section-b2-instructions::b01`): this credit carries over "until exhausted" (`ca-3547-form-2025::sec::g-carryover::b01`), the film (A75) and LAMBRA (A82) credits for 9 and 10 years. | Text B: code 204 takes the line after the film and LAMBRA credits. One order for every return. | Only when the tax over TMT cannot cover every Section A2 credit; the part of code 204 not used carries over with no limit. In `padan` it is the only Section A2 credit. | `state/ca/3547/creditUsed.ts` | Not in the library: California law. R&TC 17053.12(d) (`ca-rtc-2025::sec::s17053.12::d`): the carryover runs "until the credit has been exhausted". |
| A148 | 2026-11-28 | FTB 3547, Schedule P (540) | FTB 3547 gives a business that hauls donated food to a charity a California credit of half the transport costs (code 204); it offsets tax in Schedule P (540) Section A2, next to FTB 3541's motion picture credits and FTB 3807's LAMBRA credit. In what order are they used? | Section A2: "complete column (a) through column (d) for each credit in each section before going to the next section" (`ca-540-sched-p-inst-2025::sec::section-a2-instructions::b01`): no order inside the section. | Section B2's general rule, credits "with limited carryovers before credits with no limitation" (`::section-b2-instructions::b01`): this credit carries over "until exhausted" (`ca-3547-form-2025::sec::g-carryover::b01`), the film (A75) and LAMBRA (A82) credits for 9 and 10 years. | Text B: code 204 takes the line after the film and LAMBRA credits, and after the disabled access credit (205), which also has no limit: there the Credit Table's printed order decides (A150). One order for every return. | Only when the tax over TMT cannot cover every Section A2 credit; the part of code 204 not used carries over with no limit. In `padan` it is the only Section A2 credit. | `state/ca/3547/creditUsed.ts` | Not in the library: California law. R&TC 17053.12(d) (`ca-rtc-2025::sec::s17053.12::d`): the carryover runs "until the credit has been exhausted". |
| A149 | 2026-11-28 | FTB 3548, Schedule CA (540) | FTB 3548 gives a small business a California credit of 50% of up to $250 of what it spends to make its place accessible, and the business may not also deduct the amount of the credit. By how much does the California deduction fall: the credit for this year's own expenditures (line 4), or the credit claimed on the return (lines 9a and 9b)? | FTB 3548: "Any deduction allowed for these same expenditures must be reduced by the amount of credit claimed and/or assigned to an affiliated corporation for the current taxable year (the amount shown on line 9a and 9b)" (`ca-3548-form-2025::sec::f-limitations::b03`). | FTB Pub 1001, the Schedule CA adjustments guide: "No deduction is permitted for any amount for which a disabled access credit is allowed. California law conforms to this provision, but the maximum credit is $125" (`ftb-pub-1001-2025::sec::enter-on-schedule-ca-540-part-i-or-7::b04`). | Text B: Schedule CA (540) line 3 column C takes off line 4. Line 9a also holds the K-1 credits and last year's carryover, which are not credits for this year's expenditures, and it depends on the tax, which depends on this deduction. | Only when the tax limits line 9a or line 9a holds a K-1 credit or a carryover. In the `leya` scenario column C is $125, not $471. | `state/ca/3548/resolveInfo.ts` | R&TC 17053.42(a) allows the credit "in accordance with Section 44" (`ca-rtc-2025::sec::s17053.42::a`); section 44(d)(7) denies a deduction for "the amount of the credit determined under this section" (`usc-26-2025::sec::s44::d-7`): the credit determined, as text B. |
| A150 | 2026-11-28 | FTB 3548, Schedule P (540) | FTB 3548's disabled access credit (code 205) offsets tax in Schedule P (540) Section A2, next to FTB 3541's motion picture credits, FTB 3807's LAMBRA credit and FTB 3547's donated agricultural products transportation credit (204). In what order are they used? | Section A2: "complete column (a) through column (d) for each credit in each section before going to the next section" (`ca-540-sched-p-inst-2025::sec::section-a2-instructions::b01`): no order inside the section. | Section B2's general rule, credits "with limited carryovers before credits with no limitation on carryover" (`::section-b2-instructions::b01`); the disabled access credit carries over "until exhausted" (`ca-3548-form-2025::sec::h-carryover::b01`). | Text B applied in Section A2: the disabled access credit takes the line after the film and LAMBRA credits. FTB 3547's credit (204) also carries over "until exhausted" (`ca-3547-form-2025::sec::g-carryover::b01`), so the rule does not order the two; the Credit Table prints 205 before 204 (`ca-540-sched-p-inst-2025::sec::credit-table::b01`), and code 205 takes the line before code 204. One order for every return. | Only when the tax over TMT cannot cover all of them: then the disabled access credit gets what is left, and carries the rest. | `state/ca/3548/creditUsed.ts` | R&TC 17053.42(c): the excess "may be carried over ... until the credit is exhausted" (`ca-rtc-2025::sec::s17053.42::c`). |

The last column names the subdivision read in the law library. Rows A33 to A57 were added after the check, so their last column is the author's note, not a read of the statute. On the day of the check the library held the statute only (the regulations were added after it): no regulations, no California law, and no statutory notes, so no effective date was checked. Row 12 was marked for research; section 55(b)(1)(A) settles it: the tentative minimum tax "shall be reduced by the alternative minimum tax foreign tax credit".

Expand Down
1 change: 1 addition & 0 deletions engine/src/facts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export * from "./kinds/caAmtCaliforniaAmounts.js";
export * from "./kinds/caCaliforniaAmounts.js";
export * from "./kinds/caChildUnearnedIncome.js";
export * from "./kinds/caDependentCare.js";
export * from "./kinds/caDisabledAccess.js";
export * from "./kinds/caEarlierYearReturn.js";
export * from "./kinds/caEarnedIncomeCredit.js";
export * from "./kinds/caEmployeeClassification.js";
Expand Down
77 changes: 77 additions & 0 deletions engine/src/facts/kinds/caDisabledAccess.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* FTB 3548, the California disabled access credit of an eligible small
* business: 50% of the eligible access expenditures up to $250
* (ca-3548-form-2025::sec::b-description::b01).
*
* The expenditures and the eligible small business test are the federal
* disabled access facts (disabledAccess.ts): the same expenditures, the same
* test (ca-3548-form-2025::sec::e-definitions::b01), stated once. This kind
* holds what only California asks:
* - one fact per entity that passed a California credit through on a Schedule
* K-1 (100S, 541, 565 or 568) (line 5). The California K-1 itself is not in
* the engine: the credit is stated as the K-1 prints it;
* - last year's carryover (line 7), from the 2024 FTB 3548 line 10;
* - whether the taxpayer's own business is a disregarded single member LLC,
* whose credit has its own limit (ca-3548-form-2025::sec::f-limitations::b02).
*/

type FactRow = { key: string; value: unknown; category: string };

/* Line 5: one entity's pass-through credit (ca-3548-form-2025::sec::line-5-pass-through-disabled-access-credit::b01). */
export interface CaDisabledAccessPassThroughFactValue {
/* The entity's name, for the schedule the line asks for. */
entityName: string;
/* The entity's identification number (California corporation number, Secretary of State file number or FEIN). */
entityId: string;
/* The credit as the Schedule K-1 (100S, 541, 565 or 568) reports it. */
credit: number;
/* The credit came through a disregarded single member LLC (ca-3548-form-2025::sec::f-limitations::b02). */
throughDisregardedSmllc?: boolean;
}

export interface CaDisabledAccessPassThroughFact {
key: string;
value: CaDisabledAccessPassThroughFactValue;
}

export const CA_DISABLED_ACCESS_KEYS = {
/*
* Line 7: "Credit carryover from prior year" (the form), the 2024 FTB 3548
* line 10. A number; 0 when none. The credit carries over "until exhausted"
* (ca-3548-form-2025::sec::h-carryover::b01).
*/
carryover: "prior_year.ca_disabled_access_credit_carryover",
/*
* A boolean: the taxpayer's own business that paid the expenditures is a
* disregarded single member LLC. Its credit "that can be utilized is limited
* to the difference between the taxpayer's regular tax figured with the
* income of the disregarded entity, and the taxpayer's regular tax figured
* without" it (ca-3548-form-2025::sec::f-limitations::b02). Absent: the
* taxpayer runs the business directly.
*/
ownBusinessDisregardedSmllc: "ca_disabled_access.own_business_disregarded_smllc",
} as const;

const PASS_THROUGH_CATEGORY = "state_local_tax";
const PASS_THROUGH_PREFIX = "ca_disabled_access_pass_through.";

export function makeCaDisabledAccessPassThroughFactKey(entitySlug: string): string {
return `${PASS_THROUGH_PREFIX}${entitySlug}`;
}

export function isCaDisabledAccessPassThroughFactKey(key: string): boolean {
const parts = key.split(".");
return parts.length === 2 && `${parts[0]}.` === PASS_THROUGH_PREFIX && parts[1] !== "";
}

/* Every pass-through credit fact, in the order recorded. */
export function getCaDisabledAccessPassThroughFacts(
facts: ReadonlyArray<FactRow>,
): CaDisabledAccessPassThroughFact[] {
return facts
.filter(
(row) =>
row.category === PASS_THROUGH_CATEGORY && isCaDisabledAccessPassThroughFactKey(row.key),
)
.map((row) => ({ key: row.key, value: row.value as CaDisabledAccessPassThroughFactValue }));
}
2 changes: 1 addition & 1 deletion engine/src/federal/8826/QUESTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The form (Rev. September 2017) and its instructions publish no example with numb
7. **Cents boxes.** Every line is whole dollars (the 1040 rule, `irs-1040-inst-2025::sec::rounding-off-to-whole::b01`). Line 1 rounds the total of the expenditures once; line 6 rounds 50% of line 5, so an odd line 5 rounds the half dollar up ($2,851 gives $1,426). The cents box prints 00 next to each amount, as the form prints on lines 2 and 4. Done.
8. **Line 6 is split by expenditures.** Each group of expenditures takes a share of line 6 in proportion to its amount (`prorateDollars`), and that share comes off its expense line. The instructions say only "To the extent of the credit shown on line 6" (`line-6::b01`). Done; the total is exact and the split between two Schedule C lines can move by $1.
9. **Expenditures deducted in Part V.** The Schedule C instructions list the deduction for removing barriers under Part V, other expenses (`irs-1040sc-inst-2025::sec::part-v::b03`). Done (2026-11-27): a fact with `deductedOn: "otherExpenses"` names the Part V entry by its description (`otherExpense`), and its part of line 6 comes off that entry, so lines 48 and 27b fall with it. The engine does not check the $15,000 limit of that deduction: the entry is the business's stated amount.
10. **California adds the whole reduction back.** "California law conforms to this provision, but the maximum credit is $125 (50% of eligible expenses up to $250)" (`ftb-pub-1001-2025::sec::enter-on-schedule-ca-540-part-i-or-7::b04`). California denies a deduction only for the California credit (FTB 3548). The engine does not file FTB 3548, so it claims no California credit, and Schedule CA line 3 column B subtracts the whole federal reduction. Not now: FTB 3548 is a form of its own; a taxpayer who claims it outside the engine would subtract $125 less, at most. Schedule CA (540NR) is not changed: it does not take the work opportunity credit either.
10. **California adds the whole reduction back.** "California law conforms to this provision, but the maximum credit is $125 (50% of eligible expenses up to $250)" (`ftb-pub-1001-2025::sec::enter-on-schedule-ca-540-part-i-or-7::b04`). California denies a deduction only for the California credit (FTB 3548). Schedule CA line 3 column B subtracts the whole federal reduction, and since FTB 3548 has rules (2026-11-28) column C adds back its line 4 (decision A149, `state/ca/3548/QUESTIONS.md`). Schedule CA (540NR) is not changed: it does not take the work opportunity credit either.
11. **The election.** The taxpayer "Elects (by filing Form 8826) to claim the disabled access credit" (`purpose-of-form::b01`). A disabled access fact is the claim. The decision `decisions.scope.must_file_8826` false with a fact present makes Form 3800 line 1e a gap, because the Schedule C reduction reads only facts (`form3800.ts`). Done.
12. **A K-1 alone.** "Taxpayers, other than partnerships or S corporations, whose only source of this credit is from those pass-through entities, are not required to complete or file this form" (`purpose-of-form::b01`). The form files then only with the decision; Form 3800 takes the K-1 directly. Done.
13. **Gaps (unsupported, with a reason).** Not now, each for the reason given:
Expand Down
Loading
Loading