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