<?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: Custom Equation: Amount / Time Between in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/853318#M35954</link>
    <description>&lt;P&gt;Thanks for sharing this,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/519023"&gt;@nickfromfargo&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 17:01:42 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-09-21T17:01:42Z</dc:date>
    <item>
      <title>Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/850063#M35860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of our business is selling services. I'd like to create a new Deal Property that gets its value from a calculation.&lt;/P&gt;&lt;P&gt;In two deal properties we set &lt;EM&gt;'Start Date'&lt;/EM&gt; and &lt;EM&gt;'End Date'&lt;/EM&gt;. This allows for a quick (and correct) return for &lt;EM&gt;'Project Duration&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to use the output of &lt;EM&gt;'Project Duration'&lt;/EM&gt;&amp;nbsp; and the deal &lt;EM&gt;'Amount&lt;/EM&gt;' to calculate the value of a new Deal Property --&amp;gt; Monthly Contract Value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my simple attempt, I created this calculation, Amount divided by Project Duration (see below). However, it returns the number Zero.&lt;/P&gt;&lt;P&gt;Tried to multiply the outcome by Milliseconds per Day, but still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible at all? Also playing with other functions, I seem to get a lot of errors when trying to save the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;([properties.amount] / time_between([properties.estimated_project_start_date], [properties.estimated_project_end_date__duration_]))&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 15 Sep 2023 11:54:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/850063#M35860</guid>
      <dc:creator>--Frank--</dc:creator>
      <dc:date>2023-09-15T11:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/851773#M35911</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61421"&gt;@--Frank--&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Did you make any progress?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, I have a few questions to help our community better understand the issue.&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt; What data type is &lt;/SPAN&gt;&lt;CODE&gt;properties.amount&lt;/CODE&gt;&lt;SPAN&gt; and what data type is the result of &lt;/SPAN&gt;&lt;CODE&gt;time_between&lt;/CODE&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt; If &lt;CODE&gt;time_between&lt;/CODE&gt; returns a value in days, are you expecting &lt;CODE&gt;Monthly Contract Value&lt;/CODE&gt; to represent the average amount for each &lt;STRONG&gt;day&lt;/STRONG&gt; of the project or for each &lt;STRONG&gt;month&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Can you share the errors you receive when trying to save the function, please?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jaycee&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:53:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/851773#M35911</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-09-19T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/853312#M35952</link>
      <description>&lt;P&gt;TLDR;The main issue seems to stem from the original equation.&amp;nbsp;I think you are using the duration property in your equation as a time between factor... instead of the end date.&lt;BR /&gt;&lt;BR /&gt;Not totally sure on how I'd do it for a Monthly breakdown, but.&lt;BR /&gt;&lt;BR /&gt;You can do a &lt;STRONG&gt;Revenue per Day&lt;/STRONG&gt;&amp;nbsp;calucation all in one calculated property if you cofigure it as below swapping out your appropriate properties. Be sure the Output type is set to &lt;STRONG&gt;Number&lt;/STRONG&gt; and formatted to &lt;STRONG&gt;Currency&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;([properties.amount] / (time_between([properties.&lt;SPAN&gt;estimated_project_start_date&lt;/SPAN&gt;], [properties.&lt;SPAN&gt;estimated_project_end_date&lt;/SPAN&gt;]) / 86400000))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nickfromfargo_0-1695311393761.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/99579i3B2440BB5D7A492A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nickfromfargo_0-1695311393761.png" alt="nickfromfargo_0-1695311393761.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:59:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/853312#M35952</guid>
      <dc:creator>nickfromfargo</dc:creator>
      <dc:date>2023-09-21T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/853318#M35954</link>
      <description>&lt;P&gt;Thanks for sharing this,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/519023"&gt;@nickfromfargo&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:01:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/853318#M35954</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-09-21T17:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/1037733#M40588</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/519023"&gt;@nickfromfargo&lt;/a&gt; this calculation is great!&amp;nbsp; I set it up and it's 100% accurate.&amp;nbsp; My issue is how to use this in a report that shows Deal amounts broken out by month.&amp;nbsp; Any additional insight is truly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:46:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/1037733#M40588</guid>
      <dc:creator>KBravender</dc:creator>
      <dc:date>2024-09-06T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Equation: Amount / Time Between</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/1248949#M45082</link>
      <description>&lt;P&gt;The division by 86400000 is what did it for me! I learned that time is stored in milliseconds in HubSpot, and that is how many milliseconds are in days. So if your numbers are looking super high, that's because it's showing you the # of ms &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 21:06:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-Equation-Amount-Time-Between/m-p/1248949#M45082</guid>
      <dc:creator>ptitean</dc:creator>
      <dc:date>2026-02-06T21:06:57Z</dc:date>
    </item>
  </channel>
</rss>

