Total error computation