There are two ways to approach this. You can add a field to hold the calculated value for each row, set its default value formula to the formula you want, and then sum the values of that field. Or you can combine the sum() function with the eval() function like in the attached form, which would not require you to add a new field. The choice is yours!