Fix max_time bug

I was only getting hours, not minutes