Modified the actual time to avoid getting NaN values