I registered 3 month before the test date. Because I feel very loose if I don't have a deadline.
So, it really depends. If you need pressure for studying, go ahead and plan a test date earlier. If you like to study in a pressure-free environment, you better choose the test date later.