Calculates simple arithmetic statements