def delay(self, n, start_time):
    if (n > self.max_retries or
        (n > self.min_retries and
         time.time() - start_time > self.max_retry_period)):
      return -1
    return min(
        math.pow(self.backoff_factor, n-1) * self.initial_delay,
        self.max_delay)
Test _GetV3ExtensionFieldsFromSequence().
dataset/ETHPy150Open GoogleCloudPlatform/appengine-opencv-sudoku-python/cloudstorage/api_utils.py/RetryParams.delay--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testGetV3ExtensionFieldsFromSequenceWhenOIDBasicConstraintBadForm