calculate distance between planets