Compute min/max value if min/max is not defined.