I spent the most part of that day trying to fix a bug on my phone, it was tasking, time consuming, and tiring, yet I couldn't fix it, after hours of failing at that one thing, I gave up and went to the gym.
The long walk to and from the gym, and the streinous exercises and programmes at the gym helped me forget about the day's troubles, I even danced in spite of myself.