I have run across a difficult to solve formula. The basic problem is employees are guaranteed 15 hours of overtime weekly, three hours each day before they run into double pay overtime for the 4th hour. Whether they work one hour of OT or 15, they are paid for 15 for the week, and up to 3 hours needs to be allocated per day, unless of course one day they work more than 3 hours - anything above 3 hours per day counts toward the guarantee of 15 hours for the week. (And of course they are paid above 15 hours, and the guarantee is satisfied.) I have written a formula to allocate hours from the remaining unworked guarantee to the days, however in situations where a prior day has fewer hours actually worked than a later day in the week, the formula under allocates to the week and so we don't meet our 15 hour guarantee. The scenario is laid out in the attached spreadsheet. The formula I need appears to be some sort of iterative calculation dependent on all the allocated days, but I am stumped. Any thoughts would be much appreciated!
Bookmarks