Calculates biases