The way to calculate expressions in the first shell was via the external program expr. It is still there:
expr
$ expr 2 + 2 4
Bash has builtin operators to offers the arithmetic operations of expr