Optimized initialization of shifts on the calendar