Fix duration population calculation

Change-Id: I7873395829e7932dba4cbac4e14f850fdac7a6d8
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/978