(c) Dollar limit on amount creditable The amount of the employment-related expenses incurred during any taxable year which may be taken into account under subsection (a) shall not exceed—
(1) $5,000 if there is 1 qualifying individual with respect to the taxpayer for such taxable year, or
(2) $8,000 if there are 2 or more qualifying individuals with respect to the taxpayer for such taxable year.
(1) In general Except as otherwise provided in this subsection, the amount of the employment-related expenses incurred during any taxable year which may be taken into account under subsection (a) shall not exceed—
(A) in the case of an individual who is not married at the close of such year, such individual’s earned income for such year, or
(B) in the case of an individual who is married at the close of such year, the lesser of such individual’s earned income or the earned income of his spouse for such year.
(2) Special rule for spouse who is a student or incapable of caring for self In the case of a spouse who is a student or a qualifying individual described in subsection (b)(1)(C), for purposes of paragraph (1), such spouse shall be deemed for each month during which such spouse is a full-time student at an educational institution, or is such a qualifying individual, to be gainfully employed and to have earned income of not less than—
(A) $250 if subsection (c)(1) applies for the taxable year, or
(B) $500 if subsection (c)(2) applies for the taxable year.
(d) Earned income limitation
(e) Special rules
For purposes of this section—
(1) Place of abode An individual shall not be treated as having the same principal place of abode of the taxpayer if at any time during the taxable year of the taxpayer the relationship between the individual and the taxpayer is in violation of local law.
(2) Married couples must file joint return If the taxpayer is married at the close of the taxable year, the credit shall be allowed under subsection (a) only if the taxpayer and the taxpayer's spouse file a joint return for the taxable year.
(3) Marital status An individual legally separated from the individual's spouse under a decree of divorce or of separate maintenance shall not be considered as married.
(4) Certain married individuals living apart If—
(A) an individual who is married and who files a separate return—
(i) maintains as the individual's home a household which constitutes for more than 1/2 of the taxable year the principal place of abode of a qualifying individual, and
(ii) furnishes over half of the cost of maintaining such household during the taxable year, and
(B) during the last 6 months of such taxable year such individual’s spouse is not a member of such household,
such individual shall not be considered as married.