<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculation field custom equation help in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131759#M12286</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/819924"&gt;@TGibs02&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would approach this differently entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your goal is to trigger a workflow when the 'Client as of date' is 30 days in the past, why not simply create a workflow (without a delay) that enrolls companies when 'Client as of date is more than 30 days ago', then sets the type to existing business?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure, you can use a calculation property here – but then you have to assets (calculation + workflow) instead of one (workflow) for your process. The delay can easily be removed, as explained above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still want a calculation property, I would recommend you use the 'Time since' calculation property type for this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karstenkoehler_0-1743740760977.png" style="width: 785px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142508i7406A459D18D4223/image-dimensions/785x359?v=v2" width="785" height="359" role="button" title="karstenkoehler_0-1743740760977.png" alt="karstenkoehler_0-1743740760977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom equations in calculation properties cannot reference the concept of today yet, so if you want to calculate the time since something happened, the above is the best practice and most reliable option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 04:27:13 GMT</pubDate>
    <dc:creator>karstenkoehler</dc:creator>
    <dc:date>2025-04-04T04:27:13Z</dc:date>
    <item>
      <title>Calculation field custom equation help</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131714#M12284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping I can get some help with a formula or another way to resolve my scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scenario&lt;/P&gt;&lt;P&gt;When a Company becomes a 'Client' two things happen&lt;/P&gt;&lt;P&gt;1. We set a 'Client as of Date'&lt;/P&gt;&lt;P&gt;2. They are set to a type of New Business.&lt;/P&gt;&lt;P&gt;30 days after the Client as of Date the type is updated to Existing Business.&lt;/P&gt;&lt;P&gt;We are currently managing this change via a Delay in a Workflow, however I am keen to see if I can get rid of my delay and calculate the 30 days a different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My plan is to create a property that count downs from 30 based on the client as of date and when the property reaches 0 it triggers a WF to set the type to Existing Business. According to Open AI I can create a Calcualtion field with a custom equation that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorStartFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;30 - DATEDIFF(NOW(), client_as_of_date, "days")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;However when I enter that formula into the equation box I am getting errors:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TGibs02_0-1743727323085.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142495i1AB9499F16FC95DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TGibs02_0-1743727323085.png" alt="TGibs02_0-1743727323085.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated with the formula, or is there another way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorEndFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 00:44:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131714#M12284</guid>
      <dc:creator>TGibs02</dc:creator>
      <dc:date>2025-04-04T00:44:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: Calculation field custom equation help</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131751#M12285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/819924"&gt;@TGibs02&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel your pain, I struggled with this until someone pointed me to the "add_time" function, see example below:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-04-04 at 06.07.08.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142506iA3E0D2B9DA617F6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-04-04 at 06.07.08.png" alt="Screenshot 2025-04-04 at 06.07.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Property field type = calculation &amp;amp; custom equation&lt;/LI&gt;
&lt;LI&gt;Output date&lt;/LI&gt;
&lt;LI&gt;The use the "add_time" function (pick your "start" property, how much you add, and of what time format)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So in your case this should look something like: add_time('&lt;SPAN&gt;Client as of Date',30,"days").&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Give that a try.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 04:11:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131751#M12285</guid>
      <dc:creator>franksteiner79</dc:creator>
      <dc:date>2025-04-04T04:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation field custom equation help</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131759#M12286</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/819924"&gt;@TGibs02&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would approach this differently entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your goal is to trigger a workflow when the 'Client as of date' is 30 days in the past, why not simply create a workflow (without a delay) that enrolls companies when 'Client as of date is more than 30 days ago', then sets the type to existing business?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure, you can use a calculation property here – but then you have to assets (calculation + workflow) instead of one (workflow) for your process. The delay can easily be removed, as explained above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still want a calculation property, I would recommend you use the 'Time since' calculation property type for this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karstenkoehler_0-1743740760977.png" style="width: 785px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142508i7406A459D18D4223/image-dimensions/785x359?v=v2" width="785" height="359" role="button" title="karstenkoehler_0-1743740760977.png" alt="karstenkoehler_0-1743740760977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom equations in calculation properties cannot reference the concept of today yet, so if you want to calculate the time since something happened, the above is the best practice and most reliable option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 04:27:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Calculation-field-custom-equation-help/m-p/1131759#M12286</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-04T04:27:13Z</dc:date>
    </item>
  </channel>
</rss>

