Chris,
I have tested an example of Time2Num and this is what I did and I yielded a result:
1) I created 2 Date/Time fields (each with the display pattern set to HH:MM:SS, the data format set to Time and the data pattern set to HH:MM:SS), and 1 Numeric Field.
2) For testing in the DateTimeField1, I placed the following script in the initialize: $ = "13:13:13", and I placed $ = "13:13:19" in DateTimeField2 on the initialize.
3) In the NumericField I placed the following code on the calculate event:
$ = (Time2Num(DateTimeField2,"HH:MM:SS") - Time2Num(DateTimeField1,"HH:MM:SS"))
When I ran it, the numeric field displayed 6000 for me, which if divided by 1000 is 6 sec, which is the difference between the 2 values.
I hope this helps, the rest of the code should follow once you have the Time2Num function working.
Catherine