# How can I calculate the total price of selected services in Glide Apps and send that total to a user responses table?

**URL:** <https://community.glideapps.com/t/how-can-i-calculate-the-total-price-of-selected-services-in-glide-apps-and-send-that-total-to-a-user-responses-table/65738>\
**Category:** Ask for Help\
**Created:** [September 3, 2023, 12:11pm UTC](https://community.glideapps.com/t/how-can-i-calculate-the-total-price-of-selected-services-in-glide-apps-and-send-that-total-to-a-user-responses-table/65738 "2023-09-03T12:11:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Darius\_Elijah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darius_elijah/32/62411_2.png) [@Darius\_Elijah](https://community.glideapps.com/u/Darius_Elijah)\
**Post date:** [September 7, 2023, 6:04pm UTC](https://community.glideapps.com/t/how-can-i-calculate-the-total-price-of-selected-services-in-glide-apps-and-send-that-total-to-a-user-responses-table/65738/3 "2023-09-07T18:04:58Z")

</div>

> [@Sum an Array](https://community.glideapps.com/t/sum-an-array/65880):
>
> Need to sum items in Car Services Array. Tried rollup column, the sum option is not available. tried js solutions available on the forum doesnt seem to work Perhaps i am missing something var n = p1, remainder, sumOfDigits = 0; while(n) { remainder = n % 10; sumOfDigits = sumOfDigits + remainder; n = Math.floor(n/10); } return (sumOfDigits)

---

_[View the full topic](https://community.glideapps.com/t/how-can-i-calculate-the-total-price-of-selected-services-in-glide-apps-and-send-that-total-to-a-user-responses-table/65738)._
