When you find yourself asking this question, the truth is that you probably should have left a few month earlier. Things rarely improve. Take care of your finances and never put yourself in a position where you are dependent on a job if it is avoidable. It really helps with keeping a clear mind in making these decisions and greatly reduces stress around job changes and uncertainties.