Update calcdist.pl