In general
The amount excluded from the income of an employee under subsection (a) for any taxable year shall not exceed—
(A)#
in the case of an employee who is not married at the close of such taxable year, the earned income of such employee for such taxable year, or
(B)#
in the case of an employee who is married at the close of such taxable year, the lesser of—
(i) the earned income of such employee for such taxable year, or
(ii) the earned income of the spouse of such employee for such taxable year.
(B)(i)#
the earned income of such employee for such taxable year, or
(B)(ii)#
the earned income of the spouse of such employee for such taxable year.