<?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: Cumulative time spent in a stage seems wrong in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110209#M80398</link>
    <description>&lt;P&gt;The API returns the time in milliseconds.&amp;nbsp;&amp;nbsp;429882213 is&amp;nbsp;&lt;SPAN&gt;4.975&amp;nbsp;Days.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Next steps for troubleshooting should be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;compare what the API is returning to the property value on the deal and not on this UI card.&amp;nbsp;&lt;/SPAN&gt;There could be additional logic behind what is displayed on that card.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;validate the internal id of the pipeline stage is the correct id.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Here is how the time is calculated on the properties:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/properties/stage-calculated-properties" target="_blank"&gt;https://knowledge.hubspot.com/properties/stage-calculated-properties&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is how the time is calculated on the card: &lt;A href="https://knowledge.hubspot.com/records/use-cards-on-records#stage-tracker" target="_blank"&gt;https://knowledge.hubspot.com/records/use-cards-on-records#stage-tracker&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 17:25:42 GMT</pubDate>
    <dc:creator>Bortami</dc:creator>
    <dc:date>2025-02-17T17:25:42Z</dc:date>
    <item>
      <title>Cumulative time spent in a stage seems wrong</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1109971#M80389</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am using the deals API to get the cumulative time spent by my deals in each stage of our pipeline. However, the time is different between what the API returns and what I see in Hubspot.&lt;BR /&gt;&lt;BR /&gt;For instance, using the API I see that this specific deal has spent&amp;nbsp;429882213 seconds in this stage. This amounts to 4975 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArnaudStephan_0-1739788513070.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/138644i5DCBCD2C64A190DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArnaudStephan_0-1739788513070.png" alt="ArnaudStephan_0-1739788513070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, when looking up the deal directly in Hubspot I see that it has spent 21 days in this stage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArnaudStephan_1-1739788588296.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/138645i6165C4DABB03728C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArnaudStephan_1-1739788588296.png" alt="ArnaudStephan_1-1739788588296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I using the API incorrectly ? How do I get the correct value ?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 10:37:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1109971#M80389</guid>
      <dc:creator>ArnaudStephan</dc:creator>
      <dc:date>2025-02-17T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative time spent in a stage seems wrong</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110181#M80396</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/806658"&gt;@ArnaudStephan&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are keeping well!&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to share these similar threads that might be of interest, even though they are not via API ; but via the user interface:&lt;BR /&gt;&lt;BR /&gt;- &lt;A href="https://knowledge.hubspot.com/properties/stage-calculated-properties" target="_blank"&gt;Use deal and lead stage calculated properties&lt;/A&gt;&lt;BR /&gt;- The solutions from &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/493370"&gt;@LRehn&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt; on this post "&lt;A href="https://community.hubspot.com/t5/Dashboards-Reporting/Create-quot-time-in-deal-stage-quot-report/m-p/401189" target="_blank"&gt;Create "time in deal stage" report&lt;/A&gt;"&lt;BR /&gt;- The solution from &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt; on this post "&lt;A href="https://community.hubspot.com/t5/CRM/Calculating-cumulative-time-in-deal-stages/m-p/946876" target="_blank"&gt;Calculating cumulative time in deal stages?&lt;/A&gt;"&lt;BR /&gt;- The solution from &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt; on this post "&lt;A href="https://community.hubspot.com/t5/Dashboards-Reporting/Deal-Stages-report-on-time-spent-in-each-deal-stage/m-p/486194" target="_blank"&gt;Deal Stages report on time spent in each deal stage&lt;/A&gt;"&lt;BR /&gt;- The solution from &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt; on this post "&lt;A href="https://community.hubspot.com/t5/Dashboards-Reporting/Average-time-per-deal-stage-open-deals/td-p/1070727" target="_blank"&gt;Average time per deal stage (open deals)&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;Also, I'd love to ask out Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/171963"&gt;@Bortami&lt;/a&gt;&lt;/SPAN&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/580930"&gt;@HubSpot_Corey&lt;/a&gt;&lt;/SPAN&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/806658"&gt;@ArnaudStephan&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a lovely day and thanks so much! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 16:55:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110181#M80396</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-02-17T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative time spent in a stage seems wrong</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110209#M80398</link>
      <description>&lt;P&gt;The API returns the time in milliseconds.&amp;nbsp;&amp;nbsp;429882213 is&amp;nbsp;&lt;SPAN&gt;4.975&amp;nbsp;Days.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Next steps for troubleshooting should be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;compare what the API is returning to the property value on the deal and not on this UI card.&amp;nbsp;&lt;/SPAN&gt;There could be additional logic behind what is displayed on that card.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;validate the internal id of the pipeline stage is the correct id.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Here is how the time is calculated on the properties:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/properties/stage-calculated-properties" target="_blank"&gt;https://knowledge.hubspot.com/properties/stage-calculated-properties&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is how the time is calculated on the card: &lt;A href="https://knowledge.hubspot.com/records/use-cards-on-records#stage-tracker" target="_blank"&gt;https://knowledge.hubspot.com/records/use-cards-on-records#stage-tracker&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:25:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110209#M80398</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2025-02-17T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative time spent in a stage seems wrong</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110237#M80399</link>
      <description>&lt;P&gt;Thanks ! The proprerty description should maybe be updated then, but that's another topic !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArnaudStephan_0-1739817531109.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/138700iAD2320F58E418C12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ArnaudStephan_0-1739817531109.png" alt="ArnaudStephan_0-1739817531109.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I will check out the documentation to understand why the app shows 21 days and the API gives 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 18:48:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1110237#M80399</guid>
      <dc:creator>ArnaudStephan</dc:creator>
      <dc:date>2025-02-17T18:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative time spent in a stage seems wrong</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1113579#M80522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/806658"&gt;@ArnaudStephan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;I think that the return value is not in seconds because 21 days is equal to 1,814,400 seconds.&lt;BR /&gt;So could you please check the unit of the returned value?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1"&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 14:31:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cumulative-time-spent-in-a-stage-seems-wrong/m-p/1113579#M80522</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-02-24T14:31:24Z</dc:date>
    </item>
  </channel>
</rss>

