It depends on who's asking — a parent and a kid will usually come up with very different numbers.
A reasonable middle ground is a couple of hours on school days, with the rest of the time going to homework, sleep, and time outdoors. A common trick that works surprisingly well is treating extra play as something earned: finish your responsibilities, and you unlock another hour.
Parents should also pay attention to what's being played, not just how long. Age-appropriate games in short sessions tend to cause far fewer problems than marathon binges.
As for the honest answer from someone who has done it: most people get bored long before they hit the ten-hour mark anyway.