Calculate Distance Along A Path