Oscillation of a fluid column

Why can't hydrostatic pressure difference
=∆P=(h1–h2)pgA? Why is the formula written as ∆P=(h1+h2)pgA? Please explain.

it is being measured about dotted line. so h1+ h2 is net difference between heights of colums

@nukitapuyol Thank you. Is this correct?