Rewrote the multi day event code using only the