Four function calculator