A common guideline is to keep it to no more than about 5 hours a day. It can be tough to stick to—school, chores, and other commitments get in the way—but regularly logging very long sessions (8 hours or more) isn't especially healthy.
Balancing gaming with breaks, physical activity, and sleep is the key to keeping it a fun hobby rather than a draining one.