The shell does not have any arithmetic features built in and so you have to use the expr command. Details are in the expr manual page.