Skip to main content
Solved

Calculate the number of days

  • February 7, 2024
  • 2 replies
  • 25 views

Forum|alt.badge.img+3

I need a formula that calculates the number of days we have owned a house.

Possession date to sold date and in the case there is no sold date I want it to calculate using today. TIA

Best answer by TheTimeSavingCo

Try this: 

IF( {Posession Date}, IF( {Sold Date}, DATETIME_DIFF( {Sold Date}, {Posession Date}, 'days' ), DATETIME_DIFF( TODAY(), {Posession Date}, 'days' ) ) )

2 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Try this: 

IF( {Posession Date}, IF( {Sold Date}, DATETIME_DIFF( {Sold Date}, {Posession Date}, 'days' ), DATETIME_DIFF( TODAY(), {Posession Date}, 'days' ) ) )


Forum|alt.badge.img+3
  • Author
  • New Participant
  • February 7, 2024

Perfect. Thank you