Calculate and display distance