How redstone delay is calculated
A repeater adds 1 to 4 redstone ticks. Comparators and redstone torches add one redstone tick each, while each hopper item transfer adds eight game ticks. Server lag can make real elapsed time longer without changing the intended tick count.