AC 99-Calculate Distance