Calculate delay for a given attempt with exponential backoff.
The attempt number (0-indexed)
Retry options
Delay in milliseconds
Calculate delay for a given attempt with exponential backoff.