correct the assignment1 calculation for average wait time