changed TStMerger to consider next interpolation time instead of index