I like to keep about 1000, and have an loc that we shift money from constantly as needed. I like to have about 2 weeks of expenses available in an loc. Our income is pretty constant and diverse so 3 weeks of expenses would stretch out for many many months if we start burning cash. We pay out bills like a clock so if things get tough I have the option to go net 60 or net 80 on vendors and they'll work with us since we always pay within 7 days.
I specifically pay that quickly so I always have an ace up my sleeve. Understanding vendors will get you through. The last company I managed always paid late, without question and without exception. My boss said if you do business with us, you can carry us for net 90. Which meant net 150 if he could get by with it. I was on hold constantly, holding up entire crews and jobsites bc I couldn't order material. When he made some bad decisions, things got really tough, we couldn't compete, vendors would sell to our customers cheaper than to us bc they paid, and he fired me, 40% of his other employees, lost 60% of his customers, and will be digging himself out for years.
Money in the bank not earning a return keeps me up at night. It tears at my soul.
If my income wasn't so consistent, I would try to keep 6 to 8 weeks of expenses in an loc. We aren't really subject to big downturns in cashflow that we can't work through (farming, rentals, auto shops).
The question you should ask yourself, is how much do you need to weather the worst downturn imaginable plus 10%. If you ask yourself that question, you won't be purged in a recession or changing market.