We compare the conditions of the fluid at the top of the tank to the hole. At the hole, the height is zero, and the water is moving with a velocity v. At the top, we approximate the velocity as zero, and the height is h. The pressure at both places is atmospheric pressure.