(A) For purposes of determining eligibility for and the amount of benefits for any individual who is a child under age 18, such individual’s income and resources shall be deemed to include any income and resources of a parent of such individual (or the spouse of such a parent) who is living in the same household as such individual, whether or not available to such individual, except to the extent determined by the Commissioner of Social Security to be inequitable under the circumstances.
(B) Subparagraph (A) shall not apply in the case of any child who has not attained the age of 18 years who— (i) is disabled; (ii) received benefits under this subchapter, pursuant to section 1382(e)(1)(B) of this title , while in an institution described in section 1382(e)(1)(B) of this title ; (iii) is eligible for medical assistance under a State home care plan approved by the Secretary under the provisions of section 1396n(c) of this title relating to waivers, or authorized under section 1396a(e)(3) of this title ; and (iv) but for this subparagraph, would not be eligible for benefits under this subchapter.