a calculator is used for calculating