A fix for bug #7337.  It now calculates the max hours better.