fix(engine): calculate DURATION_ correctly

- in general, DURATION_ has second precision.
- still broken on DB2 9

related to #CAM-1138
Merge branch 'master' of github.com:camunda/camunda-bpm-platform