calculates average distance and power from SMS