edited getEndTime() for FloatingTask