calculate series Sum