This is an obvious personal leave. How long will it take depends on the actual situation. For example, the journey back and forth, the time required for defense. After comprehensive consideration, ask for leave from the leader.
The school will ask for a specific date of reply, but if your paper is not finalized, you need to communicate with the teacher frequently, so if it is not finalized, leave more time, and one week should be enough.