Optimizing calendar