I suggest you declare a variable here to hold the cumulative value and update it on each iteration.