Formula distantei.....