Different people have different kinds of responsibilities and things that should be important to them, based on what's going on in their business and with the rest of their team. Sometimes "hours spent writing code" is the thing for some people, but keep in mind it isn't always the formula for success for all people.
I think for engineering work, one might be able to stretch it a bit further. But factoring in breaks, I don't think it is sustainable to go beyond 7 or 7.5 hours.
Unless you have your own office, or at home or coworkers are forbidden to talk to you on pain of death and torture, I find it extremely difficult to be more productive than 4-4.5 hours in a 7-8 hour block of office time.
Now, I have defined "4 hours" of actual productive time as goal of each day.
"A good traveler has no fixed plans, and is not intent on arriving."
I'm optimizing and seeing what happens. If I hit a stubborn limit, and nothing works to break it, I'll accept it. But at least I'll know what's going on, and as you say, I may plan better the rest of my day.
I found out that during a "8-10 hours workday" I'm actually working, as in coding, getting shit done - maybe for about 2, tops 3 hours...
That's not just an interesting observation, I was FUCKING HORRIFIED. I'm pissing my limited lifetime away!
The first step is awareness. Always. Then comes improvement. I kept tracking myself, now being very aware of what interrupts my work, and limiting my distractions. I have yet to claim 8-10 hours of solid work in a day, but it's getting better.