Fix calculation of events in month view