such plan or contract shall be treated as being operated in accordance with the terms of the plan during the period described in paragraph (2)(B)(i). (2) Amendments to which subsection applies (A) In general This subsection shall apply to any amendment to any plan or annuity contract which is made— (i) pursuant to any provision of this section, or pursuant to any regulation issued by the Secretary or the Secretary of Labor under any provision of this section, and (ii) on or before the last day of the first plan year beginning on or after January 1, 2024, or such later date as the Secretary may prescribe. In the case of a governmental plan (as defined in section 414(d) of the Internal Revenue Code of 1986), clause (ii) shall be applied by substituting the date which is 2 years after the date otherwise applied under clause (ii). (B) Conditions This subsection shall not apply to any amendment unless— (i) during the period— (I) beginning on the date that this section or the regulation described in subparagraph (A)(i) takes effect (or in the case of a plan or contract amendment not required by this section or such regulation, the effective date specified by the plan), and (II) ending on the date described in subparagraph (A)(ii) (or, if earlier, the date the plan or contract amendment is adopted), the plan or contract is operated as if such plan or contract amendment were in effect, and (ii) such plan or contract amendment applies retroactively for such period. 4. Special rules for qualified disaster-related personal casualty losses (a) In general If an individual has a net disaster loss for any taxable year— (1) the amount determined under section 165(h)(2)(A)(ii) of the Internal Revenue Code of 1986 shall be equal to the sum of— (A) such net disaster loss, and (B) so much of the excess referred to in the matter preceding clause (i) of section 165(h)(2)(A) of such Code (reduced by the amount in clause (i) of this subparagraph) as exceeds 10 percent of the adjusted gross income of the individual, (2) in the case of