factors affecting patient waiting time