Perform calculator operation