Calculate an exponential backoff delay before retrying the next completion request using the equation:
Returns the max duration if all retries are attempted.