Calculating user distance and displaying alert