I called IRCC and the officer said you just need to meet the residency requirements until your application date, not until oath. They also said it's fine to apply from abroad but to leave a note on your paperwork and put the last date of entry as the date of the application so the calculator can...