Implement computation of the next available date in cron