Malcolm Gladwell said in an on-stage interview I witnessed that he can only write for two to three hours a day. The rest of his time he spends doing less demanding work like research and setting up interviews with people.
From what I've seen, most employed programmers only spend about this much time (maybe a bit more) actually programming.