Returns the delay in milliseconds to wait for after the given transaction attempt number.
the delay in milliseconds.
the attempt number, starting at 0 to compute the delay after the first failed attempt.