Implemented functionality for obtaining duration from a transition.