I've been trying to get a calculation to work by converting the Time Field and finding the difference between the two. I've looked at the following topic: http://www.gravityhelp.com/forums/topic/calculate-time-difference
But this only works with PHP 5.3. I've come up with a hook that should work with PHP 5.2 but for some reason the Hidden Field is coming up with 0.
Here is my form: http://www.emsinc.us/beta/temp-page/
Here is the Hook: http://pastebin.com/Mzb4fM9p
Any ideas why this is not working? Thanks