Hello,
I need a formula to calculate the amount of meal penalties incurred during a film shoot by entering the total duration (minutes) in which the penalties occurred. Here are the assumptions on how meal penalties work:
- meal must be provided at the 6th hour, otherwise it's one penalty for every half hour delayed or fraction thereof
- there's a 12 minute grace period before the first meal penalty begins
For example — if a meal is delayed by 125 minutes. That’s 5 meal penalties.
I believe the formula is:
1) if less than 12 minutes or less, return “0”
2) if between 12 to 30 minutes, return “1”
3) anything greater than 30 returns “1” for every 30 minutes or fraction thereof
I have the first part down, but stuck on 2 and 3:
Any advice? Thank you!Please Login or Register to view this content.
Bookmarks