Fixed bug in CalculateMinus and CalculateDivide functions