This matches my experience, I can code for about 4 hours, especially if it is a solid block of time, 0 hours of meetings is alienating, more than 2 is a grind.
I'd add thought that in IT work, sometimes you need to do a heavy lift and focus on one thing continuously for a week or two. I can't do it all year and I can't turn on that level of motivation with a switch.