If there is a formula for optimum rest times I wouldnt trust it. Some people might enjoy a particular roast on day 1 while others prefer the same roast at day 20.
A roaster may give you a guide. I know I do this but always qualify that as being my own personal preference. What YOUR taste buds happen to decide is really the best yardstick.