This may be the wrong thread. The linked thread describes how to perform calculations with variables. Maybe that helps?
Btw, I guess this is what you want: