Formula for pressure in liquids is
p = hPg, where h is height, P is density and g is gravity
p = Pg/h, where P is density, g is gravity and is height
p = hg/P, where h is height, g is gravity and P is density
p = hP/g, where h is height, P is density and g is gravity