Dear Gents,
I have a table which have these coloums ( Employee_IN,Employee_Out,Lastness,TotalWorkingHour s)
i need to calculate the following:
1- Employee_Out-Employee_IN = TotalWorkingHours.
Example:
17:00 - 09:00 = 8:00
17:01 - 09:02 = 7:58
16:57 - 08:39 = 8:18
2 - Latness , If the Employee came after 09:30 AM should calculate the lateness .
Example:
Employee In : 9:45 then the lateness will be 09:45 - 09:30 = 0:15 Mins
Employee In : 10:15 then the lateness will be 10:15 - 09:30 = 0:45 Mins
I've tried many times but i honestly failed .