Variable formula linked to another widget

Variable formula linked to another widget

I have a raw variable that I'd like to transform through a dynamic formula that will depend on another variable that will be filled in by my users, and this calculation will be displayed through the widgets without storing this value. How should I proceed to perform these operations?