Our thanks to Green Bay Professional Packet Radio ® for this script.
The site A and site B distances should add up to the total path distance.