GetDuration function

Learn technical details about the GetDuration function.