Variable definition using operations on other variables

Currently I can only define a variable with some absolute value or referencing it to another variable but I would also like to define it using operations on other variables.

for example
Total Fee Amount = 100000
Paid Amount = 20000

then
Unpaid Amount = Total Fee Amount - Paid Amount