Forum Discussion
Anonymous
2 years agoNot applicable
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
| 12345 | Ram | 10/25/2023 | 11:17 AM | Time IN |
| 12345 | Ram | 10/25/2023 | 11:45 AM | Time Out |
| 12345 | Ram | 10/25/2023 | 12:35 PM | Time IN |
| 12345 | Ram | 10/25/2023 | 1:35 PM | Time Out |
| 9866 | Raja | 10/25/2023 | 10:17 AM | Time IN |
| 9866 | Raja | 10/25/2023 | 11:27 AM | Time Out |
| 9866 | Raja | 10/25/2023 | 12:45 PM | Time IN |
| 9866 | Raja | 10/25/2023 | 2:35 PM | Time Out |
Expected Out Put :
EMPID Name Swipe Date Total Time Inside Office
| 12345 | Ram | 10/25/2023 | 1.28 Hours |
| 9866 | Raja | 10/25/2023 | 3 Hours |