I am asking this question because I have not located any topic with my problem, which is very similar to others.
I have 2 fields TimeSpan?
with one referring to the entry time and the other to the exit time .
I want to know the time difference, so if the person works from 8:00 a.m. to 10:00 p.m., he worked 2 hours.
This is quite simple, maybe with a Compare or a sub I can extract this total value, however when I inform that the person entered at 5:00 p.m. and left at 4:00 p.m. he returns me 1, being that he worked 23 hours
How can I do this calculation?