Calculating the cumulative sum of usage over time