Computes exponential backoff in milliseconds capped at MAX_BACKOFF_MS.
Number of consecutive errors (1-based).
Backoff duration in milliseconds.
Computes exponential backoff in milliseconds capped at MAX_BACKOFF_MS.