Incapsulate min and max values calculation with top bottom reserve