runningSum Partition Inconsistent

As I can see in the bottom graph is that your light blue status has a running sum value of 7 but ends in October. 7 + 289 = 296 (correct value).

What this is doing is that it will take the running sum of those status and add them together (when they are present in that month).

Let me know if this solution helps.