you can look into runtime log files based on the Camunda distribution either Tomcat or Jboss server. If you are using container, login to the container and see the server log file.
I followed @cpbpm excellent advice and figured something out:
The expression that you use to calculate the variable finalValue does not produce a long value, it produces a double. Thus, an exception is thrown, since the form expects a long value.
You have two options:
Change the type of the field to Double
Introduce a type cast by changing the expression to the following: #{(value - value*discount/100).longValue()}