min-max-value-calculator