Gets the delay for the given retry index.
The delay before the first retry after the initial attempt is at index 0.
The Duration to wait before the next retry.
1.0.0
The number of retries already attempted