Excel formula help

Occasional Visitor

I'm trying to create a time worked schedule for an employee.  But I cannot figure out what type of formula to write to calculate how many hours were worked from the clock in time to the clock out time.

3 Replies
Assuming time in is in A1, time out in B1, and hours worked in C1, the formula in C1 would be:

If that's not an overnight shift