extracted code to calculate exponential backoff to shared method