adapted code for duration estimate improvement

Change-Id: I2ceba3962daebea6d70d632c974a015d6599ef93
Signed-off-by: Alexander Wert <alexander.wert@sap.com>