I believe it is from the time you pass them all. Regardless of what happens, aim to get your IR done within the 36 months. Resitting your ATPLs in 3 years time will be costlier (I reckon £100+ per exam by then) not to mention, depressing and frustrating. You could always allow it to expire, and resit the exam ("revalidate") at some point in the future.