Correctly calculate getDelay(..)