You get 18 months from the date of your first exam pass to complete the rest (without resits) and 24 months from then to complete the flying. i.e. 42 months in total.
Miss either of the dates and you're back to resitting the exams but I believe the flying hours still count.