Smarter time/distance formatting