How can the distance formula be used in real life?