Perform basic calculations