Fix calculateUseForecast to run on API 7