ends with (and includes) the earlier of—
(i)#
the day on which a determination is made with respect to the eligibility of such individual for services under the State plan; or
(ii)#
in the case of such an individual who does not file an application by the last day of the month following the month during which the entity makes the determination referred to in subparagraph (A), such last day.