# Calculated properties

**URL:** <https://community.hubspot.com/t/calculated-properties/117427>\
**Category:** CRM\
**Tags:** crm, professional, how-to\
**Created:** [October 1, 2024, 11:45am UTC](https://community.hubspot.com/t/calculated-properties/117427 "2024-10-01T11:45:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBencheikh](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@SBencheikh](https://community.hubspot.com/u/SBencheikh)\
**Post date:** [October 1, 2024, 11:45am UTC](https://community.hubspot.com/t/calculated-properties/117427/1 "2024-10-01T11:45:33Z")

</div>

Hello,

I currently have the following properties on my hubspot :

- Amount which is my total contract value

- Date when the contract will start

- Date when the contract will end

For example if i win a 1 000 000€ 3 year deal that begins the 01/07/2024 then the Total contract value is 1 000 000€, the starting date is 01/07/2024 and the ending date is 01/07/2027.

I want to know what is the amount that i will be able to recognize in my revenue this year which is 166 666€ and i would like to create a calculated property to have this automatically in hubspot.

Could someone help me create this calculated property because i don’t know how to create the formulas and i dont even know if its possible to do so.

Thanks for your help.

Regards,  
Sami

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [October 1, 2024, 4:16pm UTC](https://community.hubspot.com/t/calculated-properties/117427/2 "2024-10-01T16:16:24Z")

</div>

Hi @SBencheikh! Welcome to the Community-- happy to have you here 😊

From what I understand, you want to track your multi-year values as their yearly totals, is that correct?

You can likely create a custom formula property to host that yearly value in a separate property. [This Knowledge Base article](https://knowledge.hubspot.com/properties/create-calculation-properties#create-calculation-properties) walks you through that process. That said, do the totals of years vary from deal to deal? I wonder if it would be useful also to have an automatic calculation for the total years of each contract as well.

To our experts @danmoyle, @RSchweighart, @Jnix284: do any of you have tips or tricks for creating this kind of calculation property? Thanks!

Best,  
Kennedy

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [October 1, 2024, 7:26pm UTC](https://community.hubspot.com/t/calculated-properties/117427/3 "2024-10-01T19:26:14Z")

</div>

Happy to help @kennedyp, @SBencheikh you can use this as a starting point, I used [Hub Helper Harry](https://chatgpt.com/g/g-S1yvJO3I6-hub-helper-harry) a chatGPT trained on HubSpot and a great tool for solving questions like this.

### Steps to Calculate Recognized Revenue for the Current Year:

1. **Define the Inputs** (these are your existing properties)

2. **Calculate the Duration of the Contract:**

3. **Divide the Total Contract Value Over the Duration:**

4. **Identify the Portion Recognized for the Current Year:**

5. **Create the Formula in HubSpot:**

Here is a sample formula you could apply:

`(Total Contract Value) / DATEDIFF('End Date', 'Start Date', 'months') * DATEDIFF('31/12/CurrentYear', '01/07/2024', 'months')`

- You might need to adjust the formula based on how HubSpot handles date properties and whether you’re working in months or days for accuracy.
- You can apply similar logic to calculate revenue for subsequent years based on the contract duration.

I would recommend simplifying your example to create a base formula without all of the variables (like whether it starts at the beginning of the year vs mid-year, etc.) with your defined criteria (days vs months) and then running some tests to validate the formula.

If you are looking for someone to provide you with the exact formula it might be best to pursue paid services from a consultant/freelancer or a partner/agency.

---

<div class="post-metadata">

**Author:** ![RSchweighart](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rschweighart/32/28924_2.png) [@RSchweighart](https://community.hubspot.com/u/RSchweighart)\
**Post date:** [October 1, 2024, 10:04pm UTC](https://community.hubspot.com/t/calculated-properties/117427/4 "2024-10-01T22:04:31Z")

</div>

Hi @SBencheikh,

You may consider leveraging properties that already exist in HubSpot for this.

A suggestion would be to [set up your services as a product in HubSpot](https://knowledge.hubspot.com/products/how-do-i-use-products).

Then, [add that product as a line item to a deal](https://knowledge.hubspot.com/products/edit-products-and-terms-in-the-line-items-editor).

Use the billing portion to set up your start date, billing frequency, and number of terms.

Upon saving line items to the deal, HubSpot has some values that automatically calculate such as amount, total contract value, and annual contract value.

 ![RSchweighart_0-1727819921335.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/f/2fba6e3c1fbeebcedc4cdad97f7f0c025f7ec353.jpeg)

Then, you can leverage a report to [track your recurring revenue](https://knowledge.hubspot.com/deals/track-recurring-revenue-with-revenue-analytics).

Thank you for the tag, @kennedyp. Thanks for pointing out Hub Helper Harry, @Jnix284!

All the Best,

_ **Ryan Schweighart** _

Whole Hart Impact, LLC

[whimpact.co](http://www.whimpact.co)

_I help businesses with HubSpot and Zapier._

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [October 2, 2024, 5:51pm UTC](https://community.hubspot.com/t/calculated-properties/117427/5 "2024-10-02T17:51:03Z")

</div>

@RSchweighart using products and line items is a great way to manage this, there are a lot of users not taking advantage of those features and there are also situations where it’s not possible to do so. It’s nice to know there’s more than one way to solve the same problem!

---

<div class="post-metadata">

**Author:** ![LilaJordan](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@LilaJordan](https://community.hubspot.com/u/LilaJordan)\
**Post date:** [October 10, 2024, 12:17pm UTC](https://community.hubspot.com/t/calculated-properties/117427/6 "2024-10-10T12:17:09Z")

</div>

Thank you so much for the solution.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 7, 2026, 4:52am UTC](https://community.hubspot.com/t/calculated-properties/117427/7 "2026-05-07T04:52:35Z")

</div>

Yes, this should be possible in HubSpot, but it can get tricky because you need to calculate only the portion of the contract that falls within the current year. In your example, the system would prorate the €1,000,000 across the contract duration and then calculate how many months belong to the current year.

The easiest approach is usually:

- Calculate the total contract duration in months or days
- Divide the Amount by that duration
- Multiply by the number of months/days that fall within the current year

HubSpot’s calculated properties can handle some of this, but for more advanced prorated revenue recognition, many people end up using workflows or custom-coded [properties](https://dotscalculator.com) because date-based formulas are limited. Your use case is definitely valid though, especially for forecasting and reporting.
