delayForAttempt

Computes the delay before the Nth retry attempt (0-indexed). Returns null if the attempt exceeds maxAttempts.

Return

the delay before the next attempt, or null if max attempts exceeded