auto generate of calendar