The 9-month renewal rule and the residency obligation are two separate questions. The 9-month point only determines how early a renewal application will be accepted; it does not substitute for meeting the residency obligation on the relevant date.
For planning, I would build a day-by-day list...