How we can use duration field which is added in new update

Can we use duration field for getting difference of two dates or getting difference from today’s date to particular date?