how do you find avg distance
I am not sure what you HAVE, but add the distances togther and divide this SUM by the NUMBER of distances that you added together.