SQRT(ABS(base x - destination x) ^ 2 + ABS(base y - destination y) ^ 2)

You can use the Pythagorean Theorem for finding the length of the hypotenuse of a right triangle.

distance equals the square root of the sum of the squared difference of x & y coordinates.