3 years after you completed the ATPL written exams for a
CPL/IR practical test.. Then they are valid for 7 years from the last IR validity date as
mcgoo stated.
If you do some search in the JAR regulations you will find it there, also it has been posted on the forums before. Good luck!