Calculating errors

To calculate our error, we take our actual value and subtract it from our expected value. The closer we are to 0, the better we will be. Note that the following is very little chance that we will ever hit 0, although it could conceivably happen:

public double CalculateError(double target)
{
return target - Value;
}