In what other situations can you use the distance formula?