Improve readability of calculateCell

Function calculateArithmeticExpression is extracted from recursive
calculateCell