If you run a VC backed business my suggestion is 24-30 months of runway is a good starting point.
As far as individuals go, it's not a bad idea to mirror this advice. Have essentially 2 to 2.5 years of income saved in the event that you get laid off and can't find a job for a long time. Hopefully it never comes to that, but it never hurts to be prepared.