Calculate the sum of all digits.