commandline for calculating distance