Compute the mins and maxes