I'll try to explain the problem as best I can, let me know if anything is unclear.
I do the payroll for a small driving service which pays its drivers for the time they have a client in the car, but I have a problem with the way I currently do it. Currently, the drivers fill out the times they pick up and drop off each client, and I sum the minutes of each drive then use sumifs for the drives within a certain day for each driver to do the payroll. However, sometimes we have 2 different paying clients in the same car at the same time (sometimes picked up or dropped off at different times). During the times with more than one paying client in the car, the driver is paid time and a half, but the way I have it ends up paying them double time instead. The column headings all this is based on is Date, Client Name, Start Time, End Time, Minutes, Driver.
Does anyone have any thoughts or advice on how I could sum the number of minutes of overlap for each driver, preferably without having to use a list of every minute of every day to count overlapping drives? I've spent a couple weeks thinking about this with little progress, so any thoughts would be greatly appreciated.
Note: We currently bill and pay drivers based on 15 minute increments, i.e. a drive from 3:35 pm to 4:13 pm is billed as 45 minutes.
I do the payroll for a small driving service which pays its drivers for the time they have a client in the car, but I have a problem with the way I currently do it. Currently, the drivers fill out the times they pick up and drop off each client, and I sum the minutes of each drive then use sumifs for the drives within a certain day for each driver to do the payroll. However, sometimes we have 2 different paying clients in the same car at the same time (sometimes picked up or dropped off at different times). During the times with more than one paying client in the car, the driver is paid time and a half, but the way I have it ends up paying them double time instead. The column headings all this is based on is Date, Client Name, Start Time, End Time, Minutes, Driver.
Does anyone have any thoughts or advice on how I could sum the number of minutes of overlap for each driver, preferably without having to use a list of every minute of every day to count overlapping drives? I've spent a couple weeks thinking about this with little progress, so any thoughts would be greatly appreciated.
Note: We currently bill and pay drivers based on 15 minute increments, i.e. a drive from 3:35 pm to 4:13 pm is billed as 45 minutes.