I'm in a similar work situation, but have a longer time to endure. Focusing on how staying these extra few months enhances your financial situation rather than focusing on the work situation, might be helpful. Another approach is to constantly remind yourself "that you're a shorttimer", i.e...