I got a bit of philosophy on this forum I've taken to heart, and it's served me well.
Too sick to ride in, too sick to work.
Simple, but it really works. It's stopped me from going in when I really shouldn't. And if i do feel good enough to ride, then working is OK.