# Calculating a Running Total

**URL:** <https://forum.kirupa.com/t/calculating-a-running-total/327093>\
**Category:** flash\
**Created:** [February 5, 2012, 7:50pm UTC](https://forum.kirupa.com/t/calculating-a-running-total/327093 "2012-02-05T19:50:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snowz](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Snowz](https://forum.kirupa.com/u/Snowz)\
**Post date:** [February 5, 2012, 7:50pm UTC](https://forum.kirupa.com/t/calculating-a-running-total/327093/1 "2012-02-05T19:50:05Z")

</div>

I have some buttons that you press and it makes different types of toppings appear on a burger, but I’d like there to be a cost attributed to each topping and a running total showing the cost in the bottom right corner. The cost must be deductible if the toppings are removed.

Could someone either point me towards a useful tutorial or lend a hand helping out a newb? I would really appreciate it. 🙂
