Calculating powers with a calculator