In general
1 rule
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.