2-3 hours average seems to be right. No, no need to stay up till midnight.
That usually won't happen until junior/senior year of high school unless you are doing some crazy number of ivy-oriented activities.
But I heard some middle school have more homework (e.g. Sierra vista Gate program)...