Error calculation and reporting