fix(db2): calculate duration (2)

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