Get the Length of a Section in AnimMontage

I have found now that exists the function:

GetSectionLength(int32 SectionID);

directly in the UAnimMontage class.
This can solve well the problem.