Calculate percent error.