New algorithm for figuring out how long to renew.