I have a schedule worksheet that I am trying to improve.
In the top row I can put in the start and end time of a shift (example 9:00 AM in 1st cell and 5:00 PM in adjacent cell).
The cell below calculates the amount of hours the staff member is schedule with the following formula (=((C18-INT(C18))*24)-((B18-INT(B18))*24). This works fine.
The problem I have is, I have not perfected a way for this formular to take off the break time for the staff member. Our company policy is anything 5 hours and over requires an unpaid half hour break. How can I include a formula into the one above to take off a half hour on anything 5 and above? Can someone solve this puzzle for me?
In the top row I can put in the start and end time of a shift (example 9:00 AM in 1st cell and 5:00 PM in adjacent cell).
The cell below calculates the amount of hours the staff member is schedule with the following formula (=((C18-INT(C18))*24)-((B18-INT(B18))*24). This works fine.
The problem I have is, I have not perfected a way for this formular to take off the break time for the staff member. Our company policy is anything 5 hours and over requires an unpaid half hour break. How can I include a formula into the one above to take off a half hour on anything 5 and above? Can someone solve this puzzle for me?