Automatically assign the forecast formula