Would need some help setting up a formula in Excel for calculation of inconvenient working hours.
I would be very happy if Step 1 below could be solved. We have another complication which I describe in Step 2. If that one could be solved too, that would be fantastic. Is it possible to solve both within the same formulas?
Step1
I work in a company where the employees will have additions to the salary for working inconvenient hours. We have 3 different categories of additions to the salary. All other hours (6 AM - 6 PM on weekdays) come at standard rates.
Cat A: Weekday nights between 6 PM - 6 AM
Cat B: Daytime during weekends: 6 AM - 6 PM
Cat C: Nights during weekend 6 PM - 6 AM
How can I control for that the formula calculates the inconvenient hours correctly?
Example: A person is working 3 PM - 1 AM on a Monday, i.e there should be a formula calculating additional salary according to Cat A from 6 PM until 1 AM. 3 PM - 6 PM comes at standard rates.
Step 2
We have a rule stating that "If the employee works at night before a weekday, and the shift has begun before 12 PM there should be additional salary until the end of the shift, however at longest until 8 AM the morning after.
So in fact, these are hours that we would need to take into account for calculation everything correctly:
Cat A: Weekday nights between 6 PM - 6 AM (or until 8 AM if the shift started before 12 PM)
Cat B: Daytime during weekends: 6 AM - 6 PM
Cat C: Nights during weekend 6 PM - 6 AM (or until 8 AM Sunday night (ending Monday morning) if the shift started before 12 PM)
Example: A person is working 10 PM - 9 AM on a Monday, i.e there should be a formula calculating additional salary according to Cat A from 10 PM until 8 AM. 8 AM-9 AM should come at standard rate.
Thank you very much in advance for your help!
Bookmarks