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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    2 members have viewed this topic:
    NLR  sfpx 
×
×
  • Create New...

Important Information

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