Fixed the calculation for numeric goal satisfaction.