It can last days, weeks, even up to a year or more. It's different for everyone.
Exercise definitely helps me, as does meditation.
Do whatever works for you to combat it and try to remember that it WILL stop eventually. Don't let it get the best of you.