Hi Sa.1985,
As per your case,I assume you are expecting the total working hrs to be 16:30 hrs. 8.30 am to 1.30 am.
with the assumption that he is logged off next day itself I have following solution:
A1=Start Time B1=End Time C1=Total Time D1=MyEndTime E1=MyStartTime
08:30 01:00 <formula> 11:59:59 pm 12:00:01 am
and the formula is =IF(B2<A2,(D2-A2)+(B2-E2),B2-A2)
Remember, this fails if you have time data format changed from am/pm to 24HRS
Regards,
Prasad DN
PS: Need to use with caution, that if he work more than 24 hrs, it may count from 0. example if 08:30 am started and ended next day 9.30 am it will show as only 1 hr.