To calculate distance, you need to