# Calculation field

**URL:** <https://community.hubspot.com/t/calculation-field/138950>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** professional\
**Created:** [September 3, 2025, 5:39pm UTC](https://community.hubspot.com/t/calculation-field/138950 "2025-09-03T17:39:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GEynon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/geynon/32/205732_2.png) [@GEynon](https://community.hubspot.com/u/GEynon)\
**Post date:** [September 3, 2025, 5:39pm UTC](https://community.hubspot.com/t/calculation-field/138950/1 "2025-09-03T17:39:27Z")

</div>

Hi, I have created a formula in Airtable, no problems, and it works how I want.

IF(

OR(

{Phase of Education} = “Primary”,

{Phase of Education} = “Nursery”

),

{Number of pupils} \* 2,

IF(

OR(

{Phase of Education} = “Secondary”,

{Phase of Education} = “16 plus”,

{Phase of Education} = “All-though”

),

{Number of pupils} \* 2.5,

BLANK()

)

)

I have tried to recreate in hubspot field:if(is\_known([properties.phase\_of\_education]= “Primary”) or is\_known([properties.phase\_of\_education]= “Nursery”), [properties.number\_of\_pupils] \* 2) or if(is\_known([properties.phase\_of\_education]= “Secondary”) or is\_known( [properties.phase\_of\_education]= “All-through”), [properties.number\_of\_pupils] \* 2.50)

I can’t get pass the error:

The or operator expects an argument of type Boolean but received type Number.

It does work if i remove the 2nd formula.

Any help wopuld appreciate.

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 3, 2025, 5:42pm UTC](https://community.hubspot.com/t/calculation-field/138950/2 "2025-09-03T17:42:32Z")

</div>

Hi @GEynon,

Can you please share a screenshot of the entire calculation property configuration?

Generally, it is as the error message says…

if(is\_known([properties.phase\_of\_education]= “Primary”) or is\_known([properties.phase\_of\_education]= “Nursery”), [properties.number\_of\_pupils] \* 2)  
**or**  
if(is\_known([properties.phase\_of\_education]= “Secondary”) or is\_known( [properties.phase\_of\_education]= “All-through”), [properties.number\_of\_pupils] \* 2.50)

… the OR operator expects an argument of type boolean but it receives a number. Resulting in a formula that tries to return the first number or the second number, which it can’t in a sensible way.

It looks like you’re trying to achieve this:

- If the Phase of Education is Primary or Nursery, then multiply the Number of pupils by 2.
- Otherwise, if the Phase of Education is Secondary, 16 plus, or All-through, then multiply the Number of pupils by 2.5.
- If the Phase of Education is none of those, leave the result blank.

In that case, you would have to do the following in the formula editor and nest the if statements:

if([properties.phase\_of\_education]= “Primary” OR [properties.phase\_of\_education]= “Nursery”,[properties.number\_of\_pupils] \* 2,if([properties.phase\_of\_education]= “Secondary” OR [properties.phase\_of\_education]=“All-through”,[properties.number\_of\_pupils] \* 2.5))

Best regards

---

<div class="post-metadata">

**Author:** ![GEynon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/geynon/32/205732_2.png) [@GEynon](https://community.hubspot.com/u/GEynon)\
**Post date:** [September 3, 2025, 5:58pm UTC](https://community.hubspot.com/t/calculation-field/138950/3 "2025-09-03T17:58:04Z")

</div>

Perfect thankyou

---

<div class="post-metadata">

**Author:** ![GEynon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/geynon/32/205732_2.png) [@GEynon](https://community.hubspot.com/u/GEynon)\
**Post date:** [September 3, 2025, 5:47pm UTC](https://community.hubspot.com/t/calculation-field/138950/4 "2025-09-03T17:47:17Z")

</div>

Here you go 😀

 ![Screen Shot 2025-09-03 at 18.46.18 pm.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7fdd39f9fc5d61f93f2bbd321f4ea96df73a7c6b.png)

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 3, 2025, 5:53pm UTC](https://community.hubspot.com/t/calculation-field/138950/5 "2025-09-03T17:53:16Z")

</div>

@GEynon I’ve updated my previous reply. I’m not the best at writing formulas out without seeing messages about the errors I’m creating, but the general idea should be clear 🙂
