Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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?

Posted (edited)

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

This topic is 6386 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.