Hello! Trying to figure out a formula to compute for hours worked between two dates/time given a condition. The formula only needs to compute for hours worked between 10:00PM - 6:00AM. Here are the scenarios:
Scenario 1
Time in: May 4, 2021 4:00AM
Time out: May 4, 2021 1:00PM
Hours worked: 2 hours
Scenario 2
Time in: May 3, 2021 11:00PM
Time out: May 4, 2021 8:00AM
Hours worked: 7 hours
Trying to compute for “night differential” as part of our payroll. Hoping someone can help or lead me towards the right direction. Thank you!
