I found several posts with examples but I'm struggling. Just a simple formula to start with...so I copied the following from another post and I'm getting an error; I replaced the original formula's variables with the two variables I'm testing in my form, Timesheet.Time_in and Timesheet.vFinal_out.
=IF((AND(INDEX(Timesheet.Time_in, ROW())<>"",INDEX(Timesheet.vFinal_out, ROW())<>"")), ROUND(((DATEVALUE(INDEX(Timesheet.vFinal_out, ROW()))+TIMEVALUE(INDEX(Timesheet.vFinal_out, ROW())))-(DATEVALUE(INDEX(Timesheet.Time_in, ROW()))+TIMEVALUE(INDEX(Timesheet.Time_in, ROW()))))*24,2), "")
Here's a screen shot of the error I'm seeing: