to such qualified disaster. (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 applicable taxable year 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, for (B) such earned income for the applicable taxable year. (2) Qualified individual For purposes of this subsection, the term qualified individual means any individual whose principal place of abode at any time during the incident period of any qualified disaster was located— (A) in the qualified disaster zone with respect to such qualified disaster, or (B) in the qualified disaster area with respect to such qualified disaster (but outside the qualified disaster zone with respect to such qualified disaster) and such individual was displaced from such principal place of abode by reason of such qualified disaster. (3) Applicable taxable year The term applicable taxable year means, with respect to any qualified individual, any taxable year which includes any day during the incident period of the qualified disaster to which the qualified disaster area referred to in paragraph (2) relates. (4) Earned income For purposes of this subsection, the term earned income has the meaning given such term under section 32(c) of the Internal Revenue Code of 1986. (5) Special rules (A) Application to joint returns For purposes of paragraph (1), in the case of a joint return for an applicable taxable year— (i) such paragraph shall apply if either spouse is a qualified individual, and (ii) the earned income of the taxpayer for the preceding taxable year shall be the sum of the earned income of each spouse for such preceding taxable year. (B) Uniform application of election Any election made under paragraph (1) shall apply with respect to both sections