At my startup we had people track time on ‘real’ work tasks and found that four hours was about the max anyone could (happily and productively) do each day, which was fairly consistent across roles as well.
On average it's probably less than 6 hours of actually writing code per day though.