# Price Calculation based on selected data

**URL:** https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254
**Category:** Ask for Help
**Created:** [June 28, 2023, 11:08am UTC](https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254 "2023-06-28T11:08:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dotstory\_Admin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dotstory_admin/32/46941_2.png) [@Dotstory\_Admin](https://community.glideapps.com/u/Dotstory_Admin)
#### Post date: [June 28, 2023, 11:08am UTC](https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254/1 "2023-06-28T11:08:47Z")

</div>

Hi we are building a booking system, we want the final price to be calculated based on data given and selected:

**Variable**

Service  
Duration  
Addon

So calculation would happend if the service is A and duration is 60 Mins then Rs X if Service is A and duration is 120 Mins then Rs Y

Can someone help

---

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [June 28, 2023, 11:15am UTC](https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254/2 "2023-06-28T11:15:14Z")

</div>

I think you could do that with a math column…

Service x Durration

As long as you service and durration columns are user specific then that should work well

---

<div class="post-metadata">

### Author: ![Dotstory\_Admin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dotstory_admin/32/46941_2.png) [@Dotstory\_Admin](https://community.glideapps.com/u/Dotstory_Admin)
#### Post date: [June 28, 2023, 11:15am UTC](https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254/3 "2023-06-28T11:15:57Z")

</div>

Would you mind elaborating it ?

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [June 28, 2023, 11:49am UTC](https://community.glideapps.com/t/price-calculation-based-on-selected-data/63254/4 "2023-06-28T11:49:27Z")

</div>

Perhaps this post can put you on the right track:

> [@Calculator - Adding projects that hold calculations unique for the user - Is it possible?](https://community.glideapps.com/t/calculator-adding-projects-that-hold-calculations-unique-for-the-user-is-it-possible/56500):
>
> Hi there, I’m creating a carbon emissions calculator and I’m wondering if there is a possibility for the user of the app to: Add a project Which leads to calculator page and saves calculations in that project Then, a page called My Projects will hold all the projects added to the app After clicking on each project, it’ll open a project details page with a table of calculations that have been made I’ve already created the calculator, but I’m not sure how to add that project layer to the app, …

You will need to become familiar with some of the following:

• [Math column](https://www.glideapps.com/docs/reference/computed-columns/math-column): Allows you to make calculations based off basic number columns.  
• [User-specific columns](https://www.glideapps.com/docs/reference/security-and-user-data/user-specific-data): Your basic columns are either global (all user of the app see the same data) or user-specific (two users will see different values of the same cell). These are used in calculators if you want each user to have their own calculations within the same calculator.  
• [Choice component](https://www.glideapps.com/docs/reference/components/choice-component): Might be useful if you have multiple services to choose from in your calculator  
• [How to create a custom form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014) by @Darren_Murphy. A calculator is a use case of a custom form.
