Calculate a simple arithmetic expression