For instance, a person remains affected by insanity at the beginning of Ramadan and recovers on Ramadan 12. Under this particular clause, the earlier days require make-up, and later days are governed by the restored legal capacity.
Whether the day of recovery itself is a validly performed fast depends on further details such as the timing and the intention; it cannot be assumed solely from the calendar date.