formatting distance alert