you can renew well in advance... i renewed my wifes in november when it was expiring in jan... she was leaving for a holiday and returning only after it had expired...

 

 i think you get a grace period of a week after your rp expires to renew but you must be in the country for that...