Implemented duration object for defining durations