Implemented FormulaHandler.cs for input change for quantities