Suitecrm workflow calculation field

How to calculate fields workflow with existing record to modified record?

Example : a=10 b=10 total=20. And again I change the a and b so, a=20, b=20 I want to add , newtotal= previous total (20) + a (20)+b(20) please help this calculation …

here you go:

Field Nr.A equals your var a, field Nr.B. field b, result is your newtotal.