prepare duration methods on intervals

see issue #138