calc dist