(B) Limitation based on taxable income
The amount of the net unearned income for any taxable year shall not exceed the individual’s taxable income for such taxable year.
(C) Treatment of distributions from qualified disability trusts
For purposes of this subsection, in the case of any child who is a beneficiary of a qualified disability trust (as defined in section 642 (b)(2)(C)(ii)), any amount included in the income of such child under sections 652 and 662 during a taxable year shall be considered earned income of such child for such taxable year.
(5) Special rules for determining parent to whom subsection applies
For purposes of this subsection, the parent whose taxable income shall be taken into account shall be—
