edited getEndTime() for DeadlineTask