How to create a dynamic calendar.