cfor Posted March 19, 2008 Posted March 19, 2008 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
mr_vodka Posted March 19, 2008 Posted March 19, 2008 See if these threads help. http://fmforums.com/forum/showtopic.php?tid/190174 http://fmforums.com/forum/showtopic.php?tid/192750
cfor Posted March 19, 2008 Author Posted March 19, 2008 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.
comment Posted March 19, 2008 Posted March 19, 2008 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.
-Queue- Posted March 19, 2008 Posted March 19, 2008 See if this helps. http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php?p_faqid=5281
LaRetta Posted March 19, 2008 Posted March 19, 2008 I agree, Michael. Even the one *I* wrote is better than that!
-Queue- Posted March 19, 2008 Posted March 19, 2008 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.
-Queue- Posted March 19, 2008 Posted March 19, 2008 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?
comment Posted March 19, 2008 Posted March 19, 2008 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).
-Queue- Posted March 19, 2008 Posted March 19, 2008 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...
comment Posted March 19, 2008 Posted March 19, 2008 I was referring to your attitude, not your size. Never had much patience for other people's self-pity - too preoccupied with my own. :)
cfor Posted March 20, 2008 Author Posted March 20, 2008 Thanks for the help! I'm working my way through it. I think I can get it up and running now.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now