An hour or less is a common guideline, but the honest answer is that it depends on the child.
A kid who plays sport year-round and sleeps well is in a different situation from one who is skipping meals and activities to keep playing. Signs that the amount has become a problem are the useful signal: declining schoolwork, lost interest in friends, irritability when told to stop, or staying up late to play.
Fitting gaming around the rest of the day, rather than the reverse, is the standard parents use — and it works better when the limits are agreed in advance rather than imposed mid-argument.