Calculations App Documentation

On this page, you will find answers to all your questions about our calculations app for HubSpot

How it works

Installation

The installation is done in a few steps:

  1. Login to your HubSpot account
  2. Install the app using this link
  3. Follow the prompts and select your HubSpot account
  4. Select a plan (monthly or yearly) - if you have read this far, use the code CALC20 for 20% off forever.
  5. Enter your card details.
  6. When you see the confirmation message, you can use the app in your workflows.

 

Creating formulas

1. **Basic Arithmetic Operations**:

- Addition: Use the plus sign (+).

- Subtraction: Use the minus sign (-).

- Multiplication: Use the asterisk (*).

- Division: Use the forward slash (/).

- Modulus: Use the percent sign (%).

- Exponentiation: Use double asterisks (**).

2. **Square Root**:

- To find the square root of a number, use the sqrt() function.

- Example: sqrt(16) will return 4.

3. **Absolute Value**:

- To find the absolute value of a number, use the abs() function.

- Example: abs(-5) will return 5. 

4. **Power**:

- To raise a number to a power, use the pow() function.

- Example: pow(2, 3) will return 8.

5. **Sine/Cosine/Tangent**:

- Use sin(), cos(), tan() functions respectively, converting degrees to radians with deg2rad(). -

Example: sin(deg2rad(30)) will return 0.5.

6. **Logarithms**:

- To find the logarithm of a number, use the log() function with the base as the second argument. -

Example: log(100, 10) will return 2.

7. **Exponential**:

- To find the exponential of a number, use the exp() function.

- Example: exp(1) will return approximately 2.71828.

8. **Mathematical Constants**:

- To find the Mathematical Constants of a number, use the pi() function.

- Example: `pi()` will return the value of approximately 3.1415926535898.

Remember to apply the BODMAS rule (Brackets, Orders, Division and Multiplication, Addition and Subtraction) while constructing your mathematical expressions. This ensures that operations are performed in the correct order of precedence.

Calculating time between dates

Select the 2 properties you want to compare in the formula creator panel on the left side of the screen. 

Showing the results

To see the results, you need to add an action 'Copy property value' after the calculations action.

 

Under Property or value to copy from, select 'Enrolled contact' and then 'Action outputs'

Then select your target object and property to paste the result in.

Dashboard

When you install the app, an account will be created for you at https://dashboard.thdigital.au/

To login the first time, please click on Forgot Password. You will then receive an email to set your password and access the dashboard.

From there, you can manage your subscription (cancelling, changing plans) discover our other apps, or raise support requests.

Uninstalling and Cancelling

To uninstall the app, please head to 'Connected Apps' in your HubSpot account's settings. 

Select Calculate and click on Uninstall.

Then, please head to the TH Digital Dashboard to cancel your subscription.

When you cancel your subscription, the workflow actions you have added will stop functioning.

Building the workflow actions

With this app, you will need to add 2 actions to generate the result you need.

  1. Add the Calculations action in your workflow like you would with any other action.
  2. Select your calculation method, build your formula and click 'save'
  3. Add an action 'copy property value'
  4. In property or value to copy from select 'Action output' and then output

  5. Select your target object and target property. Click save. That's it!
  6. Turn on your workflow! 

Need Support?

Please use our chatbot to help you!