Handling the case where the end time is None for the cycletime.