Imagine you have a cup of height $h$ which is filled with water up to $f\cdot h$, where $f\in(0,1)$. Let's say $f=\frac{2}{3}$ so it is easier to understand. Then suppose you have a straw of length $l>h$. What would be the minimum force needed for water to rise (also supposing there is an atmospheric pressure $p_0$)? I know that such a question involves pressures, so really what I'm confused about is how these pressures are added.
In the book I study from they say that $p_{\text{required}} = p_0 + D\cdot g \cdot (l-f\cdot h)$, where $D$ is the density of the water. What I don't understand is why the height of the water column is considered from the dry tip of the straw to the level of the water in the cup.
I know that in problems that involve calculating the pressure of the air that gets stuck in an upside-down cup when submerged it is simply the sum of the atmospheric pressure and that of the column of water between the level of water inside the cup and the surface of water outside. By the same logic I would expect a similar result with the straw, but that's obviously not the case. That being said, what is the idea behind adding pressures this way? Any help is much appreciated!