(2) Denial of double benefit Any wages taken into account in determining the credit allowed under this section shall not be taken into account as wages for purposes of sections 41, 45A, 45P, 45S, 51, and 1396 of the Internal Revenue Code of 1986. (3) Certain other rules to apply For purposes of this subsection, rules similar to the rules of sections 51(i)(1), 52, and 280C(a), of the Internal Revenue Code of 1986, shall apply. (d) Election To not take certain wages into account (1) In general This section shall not apply to qualified wages paid by an eligible employer with respect to which such employer makes an election (at such time and in such manner as the Secretary may prescribe) to have this section not apply to such wages. (2) Coordination with paycheck protection program The Secretary, in consultation with the Administrator of the Small Business Administration, shall issue guidance providing that payroll costs paid or incurred during the covered period shall not fail to be treated as qualified wages under this section by reason of an election under paragraph (1) to the extent that a covered loan of the eligible employer is not forgiven by reason of a decision under section 1106(g) of the CARES Act. Terms used in the preceding sentence which are also used in section 1106 of such Act shall have the same meaning as when used in such section. (e) Amendment to paycheck protection program Section 1106(a)(8) of the CARES Act is amended by inserting , except that such costs shall not include qualified wages taken into account in determining the credit allowed under section 4 of the Disaster RELIEF Act before the period at the end. 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