@Tod ********
In my case the school told me it can be done only within the 3 last days before the last study date. I wanted to do it 2 days before to be safe and school asked me if I could go only 1 day before, as going 2 before the end of study date could raise a flag at the immigration.