Wait time computation