Jump to content
Sign in to follow this  
EZ

help with calculation for legnth of event

Recommended Posts

Hi Folks,

I created a calculation that tells me the legnth of an event. For a single day event, it results in zero and for a two day event, it results in a one.

Here's the calcualation:

Case ( End Date - Start Date = 1; End Date - Start Date & " Day"; End Date - Start Date & " Days")

How do I make it more accurate?

Share this post


Link to post
Share on other sites

Try:

Let ( d = End Date - Start Date;

Case ( not ( Start Date> End Date); d + 1 & " Day" & Case ( d; "s") )

)

P.S. I have moved your topic to calcs rather than scriptmaker

Edited by Guest
alerted of topic move

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.