Brian Dunning's FileMaker Custom Functions

@HourlyWorkEnd ( workStartTimestamp ; scheduledHours )

A customizable function to precisely calculate the end date and time of scheduled hourly work, excluding lunches, weekends, and holidays.

  Be the first to rate this function Log in to vote

Alex Zueiv   Alex Zueiv - Show more from this author
Tashkent
https://github.com/zueiv

Share on Facebook Share on Twitter

  Sample input:
@HourlyWorkEnd ( "2022+12+30 3:45pm" ; 6.5 )
  Sample output:
1/3/2023 2:15 PM

or

1/2/2023 1:15 PM
(ignoring lunches and holidays)

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

To exclude holidays, create a table with a date field, populate it with holiday dates several years in advance, and enter the fully qualified field name in the leading section of the CF code.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: