When I was using the "pomodoro" technique, I first started with the goal of 14 pomodoros per day (14 x 25min of focused work). My (fairly successful) friend who had done pomodoro told me that was not a reasonable goal. 10-12 seems a more reasonable goal for most people.
When doing focused reading in grad school I could do maybe 8-9 hours on a good day.
Working on a personal project I enjoy at home, I can do maybe 7-8 hours of focused coding in a day (but probably not multiple days in a row).
At work I probably do 4 hours of focused coding on average. This is partly because of non-coding tasks, but also my attention tends to peter out beyond 4.5 hours.
My take is that you can't shoehorn creative work into your desired time slots. Not if the result is supposed to have any quality.
I have found that sometimes I just need to stare away from the screen and forget what exactly I have written in order to obtain a fresh perspective and spot any problems.
No way to speed up this process, and what's worse is that if I try to log only the time during which I did "focused work", the result generally doesn't go over the mentioned 5h 15min daily.
Every person I ever asked about this is in the same situation.
I am, however, bad at time tracking by disposition, and haven't made a full system yet.
It actually was dropped not that long ago, because clients complained that we "weren't working full time".
Little do they know that those 6h were honest, focused work and the requested 8h won't be, because there are limits to what can be achieved on any given day.
I work for myself, so if I can improve my efficiency within a given timespan, it's all win.
It was a lot like preparing for an exam after you skipped classes the whole semester. You don't wonder off and you don't stop and think about the direction you're going.
Until recently we used Toggl to track work time and the guidance was to have "6h of focused work daily".
I'm managing 5h 15min-ish, but only when working remotely. When I'm in the office that number organically drops to around 3h 40min.
Only person really doing those hours(and above) is one guy who's not into chit-chat.