The atmospheric pressure is balanced by the sum of the pressures of gases, the water column of height h, and the surface tension of water.
The pressure exerted by a column of water having height h is equal to 13.6h where 13.6 is the density of mercury.
Thus, Patm =Pgas +[ aq. tension +13.6h] ⇒Pgas=Patm−[ aq. tension +13.6h]