pub fn obtain_next_interval( current_cycle: &usize, cycle_ceiling: &usize, retry_interval: &Duration, ) -> Option<Duration>