return_error function

Compute forecast error