Determination of theB lifetime