Jump to content
Server Maintenance This Week. ×

help with calculation for legnth of event


This topic is 6114 days old. Please don't post here. Open a new topic instead.

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?

Link to comment
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
Link to comment
Share on other sites

This topic is 6114 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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