Calculate Exponent