Distances between a plane and a point are measured perpendicularly. That means in your case the distance in question is nothing but the absolute value of the z-coordinate.

If the plane is not parallel to the coordinate planes you have to use a formulaoryou calculate the minimum of all possible distances, using calculus.