Use core.time.Duration#to method instead of manual calculation