Someone posted an algorithm to determine the likelihood of bankruptcy on here a while ago, you could modify that I guess.
http://www.stern.nyu.edu/sites/default/files/assets/document... "Estimating the Probability of Bankruptcy"
One of the things companies do when growth stops and they want to increase profits is lay people off (it's kinda a classic MBA move).
As a logical exercise, if we assign some risk to your employer terminating you (I imagine especially for publicly traded companies one could come up with some more-accurate-than-guess-formula), then there would be a point at which the risk of your current employer would outweigh the risk of leaving to find another job. Or, another way, the risk-reward between two different jobs could be measured (e.g. working at risky Startup X vs stable Retail Bank Y).
Links welcome!