# Calculating multiple if functions in a property

**URL:** <https://community.hubspot.com/t/calculating-multiple-if-functions-in-a-property/97583>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [January 11, 2024, 9:17am UTC](https://community.hubspot.com/t/calculating-multiple-if-functions-in-a-property/97583 "2024-01-11T09:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PSantabarbara](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@PSantabarbara](https://community.hubspot.com/u/PSantabarbara)\
**Post date:** [January 11, 2024, 9:17am UTC](https://community.hubspot.com/t/calculating-multiple-if-functions-in-a-property/97583/1 "2024-01-11T09:17:42Z")

</div>

Hello all,

I am trying to do the equivalent of an ifs statement in Hubspot’s new calculation functionality within a property. In order to do this, I have used nested if functions within eachother but for some reason, Hubspot is not recognising the second if. Please can someone help with this? If statement is below:

if([properties.delivery\_fee\_service\_fee] == “Delivery Fee”, ([properties.amount] \* 0.23) + ([properties.order\_frequency\_\_numerical\_] \* 25.2), if([properties.segmentation\_] == “JEP”, [properties.amount] \* ([properties.new\_service\_fee] + 0.05), [properties.amount] \* ([properties.new\_service\_fee] + 0.23)))

Thank you

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 16, 2024, 6:48pm UTC](https://community.hubspot.com/t/calculating-multiple-if-functions-in-a-property/97583/2 "2024-01-16T18:48:51Z")

</div>

Hey, @PSantabarbara 👋 Have you tried creating this or a similarly structured calculated property in-app? I couldn’t find a great example of a calculation property that is nested in the manner you listed in the documentation. — [Calculation property syntax](https://developers.hubspot.com/docs/api/crm/properties#calculation-property-syntax).

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![PSantabarbara](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@PSantabarbara](https://community.hubspot.com/u/PSantabarbara)\
**Post date:** [January 17, 2024, 8:29am UTC](https://community.hubspot.com/t/calculating-multiple-if-functions-in-a-property/97583/3 "2024-01-17T08:29:36Z")

</div>

Hello Jaycee, I have tried creating this in app but for some reason it has  
not worked. Please could you help?
