# Calculation Property Using 2 Date Fields

**URL:** <https://community.hubspot.com/t/calculation-property-using-2-date-fields/91020>\
**Category:** Data Hub\
**Created:** [October 3, 2023, 7:15pm UTC](https://community.hubspot.com/t/calculation-property-using-2-date-fields/91020 "2023-10-03T19:15:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBettinson98](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@GBettinson98](https://community.hubspot.com/u/GBettinson98)\
**Post date:** [October 3, 2023, 7:15pm UTC](https://community.hubspot.com/t/calculation-property-using-2-date-fields/91020/1 "2023-10-03T19:15:31Z")

</div>

Our team is trying to show the days between two properties only when a certain property’s date is after another property’s date. Can a calculation property support this? We’re finding that the calculation property is showing the days between regardless of which property date is before the other.

Any advice or feedback would be great. Thanks!

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [October 3, 2023, 7:18pm UTC](https://community.hubspot.com/t/calculation-property-using-2-date-fields/91020/2 "2023-10-03T19:18:42Z")

</div>

Hi @GBettinson98,

You could create a workflow that checks whether one date comes before the other ( **re** -enroll records when date A is known and when date B is known). If it does, you would set the value of a custom single checkbox property to Yes.

You could then add this Yes value of the checkbox property as an Additional Condition for your calculation:

 ![karstenkoehler_0-1696360692186.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/5/35fb17291d6233530459884301533a44fdca125a.png)

Best regards!

---

<div class="post-metadata">

**Author:** ![GBettinson98](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@GBettinson98](https://community.hubspot.com/u/GBettinson98)\
**Post date:** [November 30, 2023, 6:01pm UTC](https://community.hubspot.com/t/calculation-property-using-2-date-fields/91020/3 "2023-11-30T18:01:35Z")

</div>

Hi, we have implemented this solution but we are having trouble with contact re-enrollment because the date properties are not supported to allow for re-enrollment. Do you have any recommendations on how we can still utilize workflows but have re-enrollment be automatic without it being manual. Let me know if that makes sense or have any questions. Thanks!
