CalculateValue function

Calculation of the value for triangular and trapezoidal fuzzy numbers