chain length calculation. There are any references about chain length calculation in here. you can look below.