for calculation there is Math Formula node. After that you can use above mentioned Rule Engine to define outcome based on calculated value. To have everything in one node you can use Column Expressions node (or other scripting node like Java Snippet or Python Script). See here workflow example with Column Expressions: