# Duration Report End and Keep the value

• 0
• Question
• Updated 1 year ago
Hi
I have a simple formula:
Today()-[B2C Start Date] calculating for a Duration Field.
However once the person discharges, I would like the duration report to stop counting and retain the value when the [B2C Discharge Date] is entered.
Is there a way to do this?
Thank you!
Katie
• 256 Points

Posted 2 years ago

• 0
• 4,430 Points

if(

isnull([discharge date]), Today()-[B2C Start Date],

[discharge date]-[B2C Start Date]

)

You'll have to capture the discharge date.

• 70,354 Points
There are a bunch of ways to do this, but here is the shortest formula

Min(Today(),[B2C Discharge Date]) -[B2C Start Date]

It presumes though that you do not post date ahead your planned terminations.
• 256 Points
IT WORKS!!!! I love trying to figure this stuff out-but you just saved me a bunch of work-I promise to keep learning-but thank you in the meantime!!!!
So exciting and cool that you can speak in this "language"
Cheers!!!!
• 256 Points
Not sure if I can ask a question from here again? Going to keep in the same thread-as it is about the same formula(s)

I have the formula: