normalized error calculator