Changed how duration is calculated in details page