another crack at getting the right wait time