Configurable distance format