expr is more commonly installed than bc so reduce the number of required dependencies and just use expr.
expr
bc