i work full time as a developer so... 2ish?
I could see that going up to 5 depending on the working environment. But people answering 7+ hours seems bonkers to me, that's more than a working day!
I’m extremely sceptical of people who say they can code for that amount of time.