Dynamically calculate the cronjob timing