Added limit and start and end dates to getCalendar