Calculated the summation of a given number