tTime() / 1000 + (isUtc ? date.utcOffset() * 60 : 0)
      const slot = Math.max(0, Math.floor((timeStamp - genesisTimeStamp) / secondsPerSlot))
      slotNumber.value = slot
      slotChanged()
    }

    function utcChanged(start) {
      processTime(start, true)
    }

    function localChanged(start) {
      processTime(start, false)
    }

    window.addEventListener("load", function () {
      slotNumber = document.getElementById("slotNumber")
      beaconchainDay = document.getElementById("beaconchai