Calculate rows in the cron DB.