(A) The waiting period referred to in paragraph (1)(F), in the case of any widow or surviving divorced wife, is the earliest period of five consecutive calendar months— (i) throughout which she has been under a disability, and (ii) which begins not earlier than with whichever of the following is the later: (I) the first day of the seventeenth month before the month in which her application is filed, or (II) the first day of the fifth month before the month in which the period specified in paragraph (4) begins.
(B) For purposes of paragraph (1)(F)(i), each month in the period commencing with the first month for which such widow or surviving divorced wife is first eligible for supplemental security income benefits under subchapter XVI, or State supplementary payments of the type referred to in section 1382e(a) of this title (or payments of the type described in section 212(a) of Public Law 93–66 ) which are paid by the Commissioner of Social Security under an agreement referred to in section 1382e(a) of this title (or in section 212(b) of Public Law 93–66 ), shall be included as one of the months of such waiting period for which the requirements of subparagraph (A) have been met.