You have to submit your master’s thesis within 23 weeks after the release of your topic by the examination board (cf. study and examination regulations 2012). You can extend the period of writing only with a sufficient reason (e.g. illness) and even then only handing in a verification (e.g. doctor’s certificate) (cf. "Allgemeine Hinweise" of the examination office).