{
          const timestamp = new Date(d.timestamp);
          if (timestamp >= startTime && timestamp <= now) {
            const minuteIndex = Math.floor(
              (timestamp - startTime) / (60 * 1000),
            );
            if (minuteIndex >= 0 && minuteIndex < totalMinutes) {
              hourlySlots[minuteIndex] = {
                timestamp: timestamp,
                value: d.value,
              };
            }
          }
        });

        return hourlySlots;
      }

      function 