Some advanced forms may require an internal calculation to take place as part of the form (rather than afterwards during the analysis). This can be done by adding a Calculation, and writing the mathematical expression into the question label field.
In this video, I showed how to perform advanced calculation in kobotoolbox using nested if.