Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

How to calculate time difference from a single column

Hello All,

 

I have a report where I am having data like below.

Here I haveSwipe Date, swipt time for employee in to office and also another column time in or time out.

So I need to calculate how much time that an employee stayed inside office by using for each day.

 

Could any one please help how to do this.

Below is my sample data:

 

Empid           Name         Swipe Date              Swipe Time         Entry/Exit

12345Ram10/25/202311:17 AMTime IN
12345Ram10/25/202311:45 AMTime Out
12345Ram10/25/202312:35 PMTime IN
12345Ram10/25/20231:35 PMTime Out
9866Raja10/25/202310:17 AMTime IN
9866Raja10/25/202311:27 AMTime Out
9866Raja10/25/202312:45 PMTime IN
9866Raja10/25/20232:35 PMTime Out

 

 

Expected Out Put :

 

EMPID           Name            Swipe Date                    Total Time Inside Office

12345Ram10/25/20231.28 Hours
9866Raja10/25/20233 Hours