loss, and (ii) 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, (B) section 165(h)(1) of such Code shall be applied by substituting $500 for $500 ($100 for taxable years beginning after December 31, 2009) , (C) the standard deduction determined under section 63(c) of such Code shall be increased by the net disaster loss, and (D) section 56(b)(1)(E) of such Code shall not apply to so much of the standard deduction as is attributable to the increase under subparagraph (C) of this paragraph. (2) Net disaster loss For purposes of this subsection, the term net disaster loss means the excess of qualified disaster-related personal casualty losses over personal casualty gains (as defined in section 165(h)(3)(A) of the Internal Revenue Code of 1986). (3) Qualified disaster-related personal casualty losses For purposes of this subsection, the term qualified disaster-related personal casualty losses means losses described in section 165(c)(3) of the Internal Revenue Code of 1986— (A) which arise in the Hurricane Harvey disaster area on or after August 23, 2017, and which are attributable to Hurricane Harvey, (B) which arise in the Hurricane Irma disaster area on or after September 4, 2017, and which are attributable to Hurricane Irma, or (C) which arise in the Hurricane Maria disaster area on or after September 16, 2017, and which are attributable to Hurricane Maria. (c) Special rule for determining earned income (1) In general In the case of a qualified individual, if the earned income of the taxpayer for the taxable year which includes the applicable date is less than the earned income of the taxpayer for the preceding taxable year, the credits allowed under sections 24(d) and 32 of the Internal Revenue Code of 1986 may, at the election of the taxpayer, be determined by substituting— (A) such earned income for the preceding taxable year,