Handle max/min in calculation