finding out average appointments