I'm lucky in that I have a pretty flexible schedule. The only HARD scheduling issues for me are my classes -- I have two on Tuesdays, 9:15-11:30 and 13:30-15:45, and one on Fridays 12:15-2:30. I take Tuesdays off since, with office hours and prep, I don't usually get out until around 18:00. I live about five minutes from the university.
The rest of my time -- office hours, writing, research -- is pretty flexible. I can do a lot of it from home, and I usually work until about dinner time [19:30] and then for an hour after dinner.
So I do most of my weekday rides in the morning before 9:00. I find that if I set that target, I have enough flexibility to poodle a bit, have a flat and then time for a shower, and be ready to work by 10:00 am.
It's a narrow window -- flexibility aside, I do have to be in the office in the morning -- but I still manage to get a ride most days.