@Monica *********
the only thing you can do is have the school cancel your work permit at/for your preferred departure date from Thailand. If you have an excellent relationship with them they might go along with that, otherwise you must leave Thailand at midnight on the date your work permit is cancelled, or possibly apply for an extension that would be denied giving you 7 days.