Enough to cover near-term obligations and enough to keep you from being forced to sell investments at a bad moment. The exact number varies by job stability, fixed expenses, debt load, and how volatile your income is.
The purpose of cash is not just return. It is decision quality during stress.