calculate distance
log tool