updated done function for addHours.