If the data is in a repeating node, you can use sum(field) to sum all instances of that field.
If the data is not in a repeating node, you can use regular math expressions ( + ).
I guess if you need more specific advice, please attach your XSN or a screenshot of the schema. Attachments can be added to your response via the Options tab.