23036.
(a) (1) The term “tax” includes any of the following:(A) The tax imposed under Chapter 2 (commencing with Section 23101).
(B) The tax imposed under Chapter 3 (commencing with Section 23501).
(C) The tax on unrelated business taxable income, imposed under Section 23731.
(D) The tax on S corporations imposed under Section 23802.
(2) The term “tax” does not include any amount imposed under paragraph (1) of subdivision (e) of Section 24667 or paragraph (2) of subdivision (f) of Section 24667.
(b) For purposes of Article 5 (commencing with Section 18661) of Chapter 2, Article 3 (commencing with Section 19031) of Chapter 4, Article 6 (commencing with Section 19101) of Chapter 4, and Chapter 7 (commencing with Section 19501) of Part 10.2, and for purposes of Sections 18601, 19001, and 19005, the term “tax” shall also include all of the following:
(1) The tax on limited partnerships, imposed under Section 17935 or Section 23081, the tax on limited liability companies, imposed under Section 17941 or Section 23091, and the tax on registered limited liability partnerships and foreign limited liability partnerships imposed under Section 17948 or Section 23097.
(2) The alternative minimum tax imposed under Chapter 2.5 (commencing with Section 23400).
(3) The tax on built-in gains of S corporations, imposed under Section 23809.
(4) The tax on excess passive investment income of S corporations, imposed under Section 23811.
(c) Notwithstanding any other provision of this part, credits shall be allowed against the “tax” in the following order:
(1) Credits that do not contain carryover provisions.
(2) Credits that, when the credit exceeds the “tax,” allow the excess to be carried over to offset the “tax” in succeeding taxable years. The order of credits within this paragraph shall be determined by the Franchise Tax Board.
(3) The minimum tax credit allowed by Section 23453.
(4) Credits for taxes withheld under Section 18662.
(d) Notwithstanding any other provision of this part, each of the following shall be applicable:
(1) No credit shall reduce the “tax” below the tentative minimum tax (as defined by paragraph (1) of subdivision (a) of Section 23455), except the following credits, but only after allowance of the credit allowed by Section 23453:
(A) The credit allowed by former Section 23601 (relating to solar energy).
(B) The credit allowed by former Section 23601.4 (relating to solar energy).
(C) The credit allowed by Section 23601.5 (relating to solar energy).
(D) The credit allowed by Section 23609 (relating to research expenditures).
(E) The credit allowed by Section 23609.5 (relating to clinical testing expenses).
(F) The credit allowed by Section 23610.5 (relating to low-income housing).
(G) The credit allowed by former Section 23612 (relating to sales and use tax credit).
(H) The credit allowed by Section 23612.2 (relating to enterprise zone sales or use tax credit).
(I) The credit allowed by Section 23618 (relating to child care).
(J) The credit allowed by Section 23612.6 (relating to Los Angeles Revitalization Zone sales tax credit).
(K) The credit allowed by former Section 23622 (relating to enterprise zone hiring credit).
(L) The credit allowed by Section 23622.7 (relating to enterprise zone hiring credit).
(M) The credit allowed by former Section 23623 (relating to program area hiring credit).
(N) For each income year beginning on or after January 1, 1994, the credit allowed by Section 23623.5 (relating to Los Angeles Revitalization Zone hiring credit).
(O) The credit allowed by Section 23625 (relating to Los Angeles Revitalization Zone hiring credit).
(P) The credit allowed by Section 23633 (relating to targeted tax area sales or use tax credit).
(Q) The credit allowed by Section 23634 (relating to targeted tax area hiring credit).
(R) The credit allowed by Section 23649 (relating to qualified property).
(2) No credit against the tax shall reduce the minimum franchise tax imposed under Chapter 2 (commencing with Section 23101).
(e) Any credit which is partially or totally denied under subdivision (d) shall be allowed to be carried over to reduce the “tax” in the following year, and succeeding years if necessary, if the provisions relating to that credit include a provision to allow a carryover of the unused portion of that credit.
(f) Unless otherwise provided, any remaining carryover from a credit that has been repealed or made inoperative shall continue to be allowed to be carried over under the provisions of that section as it read immediately prior to being repealed or becoming inoperative.
(g) Unless otherwise provided, if two or more taxpayers share in costs that would be eligible for a tax credit allowed under this part, each taxpayer shall be eligible to receive the tax credit in proportion to its respective share of the costs paid or incurred.
(h) Unless otherwise provided, in the case of an S corporation, any credit allowed by this part shall be computed at the S corporation level, and any limitation on the expenses qualifying for the credit or limitation upon the amount of the credit shall be applied to the S corporation and to each shareholder.
(i) (1) With respect to any taxpayer that directly or indirectly owns an interest in a business entity that is disregarded for tax purposes pursuant to Section 23038 and any regulations thereunder, the amount of any credit or credit carryforward allowable for any income year attributable to the disregarded business entity shall be limited in accordance with paragraphs (2) and (3).
(2) The amount of any credit otherwise allowed under this part, including any credit carryover from prior years, that may be applied to reduce the taxpayer’s “tax,” as defined in subdivision (a), for the income year shall be limited to an amount equal to the excess of the taxpayer’s regular tax (as defined in Section 23455), determined by including income attributable to the disregarded business entity that generated the credit or credit carryover, over the taxpayer’s regular tax (as defined in Section 23455), determined by excluding the income attributable to that disregarded business entity. No credit shall be allowed if the taxpayer’s regular tax (as defined in Section 23455), determined by including the income attributable to the disregarded business entity is less than the taxpayer’s regular tax (as defined in Section 23455), determined by excluding the income attributable to the disregarded business entity.
(3) If the amount of a credit allowed pursuant to the section establishing the credit exceeds the amount allowable under this subdivision in any income year, the excess amount may be carried over to subsequent income years pursuant to subdivisions (d), (e), and (f).