Using conditions in the calculation widget