If your script is running at time t0 and it's still running at time t1 and you want to know how many hours have elapsed between t0 and t1, I think the easiest way to do that is to use the UNIX epoch.
So at time t0 store the epoch time:
t0="$(date '+%s')"
and then at time t1 get the epoch time again:
t1="$(date '+%s')"
then you can just query the difference between the two times to get the seconds, and divide by 3600 if you want that in hours:
(( elapsed = t1 - t0 ))
(( hours = elapsed / 3600 ))
Korn shell isn't the best tool for division though. You might prefer to stick with the number of seconds elapsed.