How to calculate "Total number of active packages by each day"

In Metabase i have this table:

How can i create "Plan activating" same as bellow:

I need to calculate remaining total plan activating from two column "date expired" and "plan expireds".

Isn’t that a cumulative sum of the question you made?

No it wasn't cumulative sum of "plan expireds", I want [Sum total of plan expireds] - [plan expireds] each day.
The 2nd pictures i use excel.

Not sure it's clear what you want but what you are describing is cumulative sum

2 = 2
2 + 4 = 6
6 + 5 = 11