I've tried searching, and did find several threads about calculating time, but I didn't see anything that really connected with what I'm trying to do.
So I have a table with an "entry date/time" and "exit date/time" (see example). The time columns are formatted [$-F40]h:mm AM/PM. What I'd like to do is calculate the time (in hours) between the entry to exit times; and if the it goes across days, include the days. I'm not really firm on the "total time" format, I just want to be able to identify the number of days and hours if it goes multiple days, otherwise a simple hours/minutes will be cool.
Any ideas??
Something like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Entry[/TD]
[TD][/TD]
[TD]Exit[/TD]
[TD][/TD]
[TD]Total time[/TD]
[/TR]
[TR]
[TD]8/15/2017[/TD]
[TD]1:30 pm[/TD]
[TD]8/15/17[/TD]
[TD]2:30 pm[/TD]
[TD]1 hour[/TD]
[/TR]
[TR]
[TD]8/15/2017[/TD]
[TD]12:00 pm[/TD]
[TD]8/20/2017[/TD]
[TD]1:30 pm[/TD]
[TD]5 days 1 hour 30 minutes[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So I have a table with an "entry date/time" and "exit date/time" (see example). The time columns are formatted [$-F40]h:mm AM/PM. What I'd like to do is calculate the time (in hours) between the entry to exit times; and if the it goes across days, include the days. I'm not really firm on the "total time" format, I just want to be able to identify the number of days and hours if it goes multiple days, otherwise a simple hours/minutes will be cool.
Any ideas??
Something like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Entry[/TD]
[TD][/TD]
[TD]Exit[/TD]
[TD][/TD]
[TD]Total time[/TD]
[/TR]
[TR]
[TD]8/15/2017[/TD]
[TD]1:30 pm[/TD]
[TD]8/15/17[/TD]
[TD]2:30 pm[/TD]
[TD]1 hour[/TD]
[/TR]
[TR]
[TD]8/15/2017[/TD]
[TD]12:00 pm[/TD]
[TD]8/20/2017[/TD]
[TD]1:30 pm[/TD]
[TD]5 days 1 hour 30 minutes[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]