I always tell myself to sleep on it. Everything looks different after a good night's sleep.
When things are really bad, I refer to a little book called Life Without Stress - applying eastern philosophy to our western way of life. It says to ask yourself, "Am I in mortal danger right now? Do I have a place to sleep and food to eat?". That helps me clarify what's really important. Everything else can be worked with.