- Migrated atoi to strtol, and added missing include.
- Migrated handleReportCalendar to CmdCalendar.