This should be probably related to SlotRange, since SlotRange constructs the Slots based on the time frame, so a Slot should never receive events outside the range.

As per controller logic:

    slots = SlotRange.new(start_time, end_time, duration)

    MonkeyCredential.all.each do |monkey|
      calendar = Calendar.new(monkey.token)
      events = calendar.list_events(start_time, end_time)
      slots.slot(monkey, events)
    end