where p is pressure at bottom.