converted duration object to seconds