Automatic generation of calendar