Write the code in the Calculate event of the Summary field in the row 4.
Use FormCalc as the language.
$.rawValue = Sum(Amount1.rawValue, Amount2.rawValue, Amount3.rawValue, Amount4.rawValue);
Change the field names to actual names in your form.
Thanks
Srini