[SOLVED] Simple Synthetic Variable

I really need some help with synthetic variables. I have a simple requirement – I need to know the difference between two (raw) variables at last sample eg: if variable 1 = 50 and variable 2 = 30 the synthetic variable = 20. Can you help with the syntax?

Greetings, just use {{raw_1}} - {{raw_2}}, keep in mind that in order to implement the math operation the dots in the time series of both variables must have the same timestamp. For more information, please refer here.

All the best.