compute average turnaround and wait times