"""
        Get datetime of the next retry if the task instance fails.
        For exponential backoff, retry_delay is used as base and will be converted to seconds.
        """
        from airflow.models.abstractoperator import MAX_RETRY_DELAY
        delay = self.task.retry_delay
        if self.task.retry_exponential_backoff:
            
            
            
            min_backoff = math.ceil(delay.total_seconds() * (2 ** (self.try_number - 2)))
            
            
            
            
            if min_backoff < 1:
                min_backoff = 1
            
            ti_hash = int(
                hashlib.sha1(
                    f"{self.dag_id}#{self.task_id}#{self.execution_date}#{self.try_number}".encode()
                ).hexdigest(),
                16,
            )
            
            modded_hash = min_backoff + ti_hash % min_backoff