Calculate correct error percentage