Suppose the pressure at the surface of mercury in a barometer tube is P1 and the pressure at the surface of mercury in the cup is P2.

In a barometer, the pressure is equal to

1