How to get total of fields' values?