Hi, I am trying to create a formula to work out meal allocations for works at a festival site.
Currently I have date fields for 'ARRIVAL DATE' & 'DEPARTURE DATE' and a field for 'DAYS ON SITE' which uses the formula DATETIME_DIFF({DEPARTURE DATE},{ARRIVAL DATE}, 'DAYS') to calculate the days that any given crew member will be on site. I use another field 'Crew Meals' with the formula SUM({DAYS ON SITE}*3)
Through the actual show component of the event, we only feed crew members that are actively working ie audo / lighting operators. I have included a check box field 'SHOW CREW' for crew members to check if they work on the show. I would like to create a formula (potentially an extension of the 'CREW MEALS' formula) which takes into consideration the 'SHOW CREW' check box status.
For example - departure date minus arrival date = days on site minus 4 days, if the check box is unchecked. OR
departure date minus arrival date = days on site minus 0 days, if the check box is checked, to indicate the crew member is working through the show.
Any help would be greatly appreciated. Thank you


