You need to plan to submit your thesis during the final 12 months of your programme and before your programme end date.
The duration of your study depends on whether you are a full-time or part-time student, and the type of programme you are enrolled on.
See your Academic Regulations for Postgraduate Research Awards handbook, section D for more information.