What is the method to calculate error?

What is the method to calculate error?