When calculating liquidity requirement, when do we need to add the cash inflows into consideration?

For example, John needs $30k for medication in the following year. John’s salary is $100k and he can save $80k. He will contribute all the $20k saving into the investment portfolio.

In calculating the liquidity need for the following year, do we consider just the $30?

Thank you