Equation for liquid density