Correct time msec calculation