Jump to content

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

Recommended Posts

Posted

Looking for some help with date calculations.

I have a start date and an end date (defined as dates). I need to calculate the workday duration between the 2 days and also figure out a way to exclude holidays.

I'm guessing it needs to be a custom function, but I don't know how to do that.

thanks

Posted

See if these threads help.

http://fmforums.com/forum/showtopic.php?tid/190174

http://fmforums.com/forum/showtopic.php?tid/192750

Posted

Thanks, I looked at those before I posted. My problem is that I can't figure out how to convert those answers into what I'm trying to do.

I think I understand the Holiday part. I get lost in the difference of using 2 dates and figuring out the workday durations.

Posted

I don't think a custom function is really needed here. See:

http://www.fmforums.com/forum/showtopic.php?tid/155958/post/156042/#156042

For holidays, you need to define a relationship to a table of holidays, filtered by by the date range. Then count the holidays in range* and subtract the count from the previous result.

---

(*) make sure you count only holidays that fall on what would otherwise be a workday.

Posted

See if this helps. http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php?p_faqid=5281

Posted

Agreed, but the search engine seems too complicated these days. So I just went with what I had, even though I was still beaten by a minute.

Posted

Thanks, but it probably will just get me wet for now. I've only used FM 5.5 for the last two years; we really need to upgrade to 9, which may become a reality within the next year. I need some time to play with 7 again, but that probably won't be happening very soon.

Cry for me, won't you?

Posted

What are you - Argentina? I am sure you'll manage. Off topic, I always thought FMI should offer a FREE developer version (perhaps crippled in some way to prevent abuse).

Posted

No, I'm not quite that big yet, but you could still be sympathetic, ya jerk!

Ooh, that would be excellent! It would definitely beat changing the date before you open any files, not that I've ever done that...

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