Calculations with parentheses

One options is to use custom states as intermediate steps.

You could also potentially use the new plugin that allows you to do expressions. Toolbox plugin - collection of utility elements, although I haven’t used it, so can’t say for sure!