For crits I'll do a max of 2 hours if it's a good one.
For Road Races I'll do 3 hours.
For weekend stage races I'll do up 10 hours if I can carpool, less if solo.
For longer stages races I would do 15 max.
In the past I've only done 1-2 stage races per year. Hopefully more this year as they are really the funnest thing going in bike racing.