Fix math in #with_retries method.