Simplify download duration computation (fix negative bug)