>>616
t=a-obj.time*b じゃなくて ot=a-obj.time*b にしないと。

これでいけるかと。
<? a=0 b=1 ot=a-obj.time*b mes(string.format("%02d:%02d.%02d",ot/3600,ot/60,ot%60)) ?>