fixed distance calculation/format