"(ii) any term, earlier than the term referred to in clause (i), during which such previous President served as President or Vice President." . . . .