              (d) => new Date(d.timestamp) > currentSlot.timestamp,
            );

            if (previousData && nextData) {
              const previousTime = new Date(previousData.timestamp).getTime();
              const nextTime = new Date(nextData.timestamp).getTime();
              const timeFraction =
                (currentSlot.timestamp.getTime() - previousTime) /
                (nextTime - previousTime);
              currentSlot.value =
                previousData.value +
                ti