Setup distance calculator