There is no time constraint - HSPA examinations are offered continuously, throughout the year.
You may take it whenever you feel you are ready, though we recommend taking the exam sooner rather than later so that the information you learned is still fresh in your mind.