Fixed inequality bug in min hours