do the sums