[add] Calculate distance