In general
The term “earned income” means the net earnings from self-employment (as defined in section 1402(a)), but such net earnings shall be determined—
(i)#
only with respect to a trade or business in which personal services of the taxpayer are a material income-producing factor,
(ii)#
without regard to paragraphs (4) and (5) of section 1402(c),
(iii)#
in the case of any individual who is treated as an employee under subparagraph (A), (C), or (D) of section 3121(d)(3), without regard to section 1402(c)(2),
(iv)#
without regard to items which are not included in gross income for purposes of this chapter, and the deductions properly allocable to or chargeable against such items,
(v)#
with regard to the deductions allowed by section 404 to the taxpayer, and
(vi)#
with regard to the deduction allowed to the taxpayer by section 164(f).
For purposes of this subparagraph, section 1402, as in effect for a taxable year ending on December 31, 1962 , shall be treated as having been in effect for all taxable years ending before such date. For purposes of this part only (other than sections 419 and 419A), this subparagraph shall be applied as if the term “trade or business” for purposes of section 1402 included service described in section 1402(c)(6).