numbers function IF greater than using date & time
I am trying to produce a number sheet that will allow me calculate a working rota for staff.
The problem i am having is when i try and use a IF function to remove 1hr (for lunch) if the person works 8 hours or more.
If that person works between 6 and 8 they require a 30 mins lunch.
I have already setup the sheet to calculate the total shift time by subtracting the starting time from the finishing time. i.e. 18:00 - 08:00 = 10hrs
Now i need it to subtract 1hr for lunch.
It should read something like IF 10 >8 then -1 from 10.
I just don't know how to not cause an error.
ideally i would like it to be able to handle 2 IF's in the one cell. if its 6-8hrs - 30mins or if its greater than 7 -1 hr.
I currently have all the cells set at time and date.
Any help would be greatly appreciated.
Richard
MacBook Pro with Retina display, OS X Yosemite (10.10)