count rest distance to destination