Calculation of Maximum Values