def get_countdown(self, retries) -> int:
retry_delay = self.retry_delay<EOL>if self.retry_exponential_backoff:<EOL><INDENT>return min(<EOL>max(<NUM_LIT:2> ** retries, retry_delay),  <EOL>self.max_retry_delay  <EOL>)<EOL><DEDENT>return retry_delay<EOL>
Calculate the countdown for a celery task retry.