# Data property timestamp in ticket-based workflow

**URL:** <https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149>\
**Category:** Tickets & Conversations\
**Tags:** enterprise\
**Created:** [June 9, 2025, 7:46am UTC](https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149 "2025-06-09T07:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HanaHuyenNguyen](https://avatars.discourse-cdn.com/v4/letter/h/ed655f/32.png) [@HanaHuyenNguyen](https://community.hubspot.com/u/HanaHuyenNguyen)\
**Post date:** [June 9, 2025, 7:46am UTC](https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149/1 "2025-06-09T07:46:19Z")

</div>

Hi,

I built an workflow to enrol a ticket whenever that ticket is in the stage “Pending customer information” → Wait for 5 days - Check if data property “Last customer reply date” is not in the last 5 days then close ticket automatically

The issue here is how HubSpot measure “day” in different step:

- Wait 5 days: In this case, 1 day - 24 hours

- “Last customer reply date” is not in the last 5 days: In this day, 1 day = 1 calendar day.

That leads to the logic being wrong for some tickets. Anyone has a better workflow to accomlish such task?

---

<div class="post-metadata">

**Author:** ![GIlievski](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gilievski/32/38539_2.png) [@GIlievski](https://community.hubspot.com/u/GIlievski)\
**Post date:** [June 9, 2025, 9:40am UTC](https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149/2 "2025-06-09T09:40:26Z")

</div>

Hi @HanaHuyenNguyen,

There are a few ways that you could solve this.

One way that comes to mind, you should already have a property ‘Date Entered “Pending customer information”’. You can build a calculation property of type “Time Since” which calculates time since ‘Date Entered “Pending customer information”’ and “Today’s Date”. Let’s call it “Time Since PCI stage”.

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/8/185812362249ed4cfa3d0fecf007c5014f9bbf1f.png)

Then the workflow can be IF ticket is in the stage “Pending customer information” and “Time Since PCI stage” is more than 5 days ago.

For “Last customer reply date” you can check if it is more than 5 days ago in the trigger or in a branch as a first action after the trigger so that you can close the ticket or not.

Make sure you test it of course. Hope that helps.

---

<div class="post-metadata">

**Author:** ![HanaHuyenNguyen](https://avatars.discourse-cdn.com/v4/letter/h/ed655f/32.png) [@HanaHuyenNguyen](https://community.hubspot.com/u/HanaHuyenNguyen)\
**Post date:** [July 17, 2025, 7:57am UTC](https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149/3 "2025-07-17T07:57:20Z")

</div>

@GIlievski return here to say that after testing your recommendation of doing calculated field, it works well for our case. Thank you!

---

<div class="post-metadata">

**Author:** ![GIlievski](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gilievski/32/38539_2.png) [@GIlievski](https://community.hubspot.com/u/GIlievski)\
**Post date:** [July 18, 2025, 12:34am UTC](https://community.hubspot.com/t/data-property-timestamp-in-ticket-based-workflow/134149/4 "2025-07-18T00:34:12Z")

</div>

Hey @HanaHuyenNguyen glad I could help.
