Hi Shariff, as I don't have any work in my office today, I just opened citehr.com and saw your question. I also didn't know how to calculate timings in Excel, but I searched for some formulas on the internet, tried them myself, and was successful.
Calculating Early Leaves and Late Logins
To calculate who leaves early and logs in late, first find the difference between the login (A column) and logout (B column). Just subtract the logout (B column) time from the login (A column) time. You will get the difference there and can easily recognize who is not staying around 9 hours per day.
But there is a small problem. If the logout (B column) time is less than (<) the login (A column) time, it will show all #####. In that case, use this formula in Excel: `if(B<A,B+1,B)-A`. You will get the difference.
If you don't want to see AM/PM in those columns, just right-click, format cells, and select h:mm:ss. If you have any doubts, feel free to reach out to me again.
Regards,
Santosh