How can I multiply the sum of fields with the number of the fields?