Update CalculateSum