Calculates the delay before the next reconnection attempt.
Duration calculateDelay(int attemptNumber);