Best Answer
You have to retake it right after your license expires, i went in the day after mine expired and had to retake it. That's when i had them send the next one through the mail. =P
The day after your license expires you have to retake the whole test. There isn't a certain time period. You will have to take the test over and pay for it. Also if you are living in a different state you would have to get that state license to get your license.
Once your license is expired then you can reapply at any time unless you went to court. If this was the case the courts decide when you can reapply. In any case one a license expires you must take the entire written and driving test.