Cal. Rev. & Tax. Code § 17039
(a) Notwithstanding any provision in this part to the contrary, for the purposes of computing tax credits, the term “net tax” means the tax imposed under either Section 17041 or 17048 plus the tax imposed under Section 17504 (relating to lump-sum distributions) less the credits allowed by Section 17054 (relating to personal exemption credits) and any amount imposed under paragraph (1) of subdivision (d) and paragraph (1) of subdivision (e) of Section 17560. Notwithstanding the preceding sentence, the “net tax” shall not be less than the tax imposed under Section 17504 (relating to the separate tax on lump-sum distributions), if any. Credits shall be allowed against “net tax” in the following order:
(5)
(c)
(1) Notwithstanding any other provision of this part, no tax credit shall reduce the tax imposed under Section 17041 or 17048 plus the tax imposed under Section 17504 (relating to the separate tax on lump-sum distributions) below the tentative minimum tax, as defined by Section 17062, except the following credits:
(e)
(g)
(h)
(i) The amendments made to this section by Chapter 3 of the Statutes of 2022 shall apply as follows:
(j) The amendments made to this section by Chapter 56 of the Statutes of 2023 shall apply as follows: