more efficient duration conversion