Defines the time to wait before each attempt in a retry mechanism.
Calculates the time to wait before the given attempt.