This one shouldn’t be too difficult.
Just review the below links in detail and you will learn all you need to know about how to calculate cumulative totals.
https://blog.enterprisedna.co/tag/cumulative-totals/
Plenty of examples here for you to review.
Good luck!
Sam