Chain Length Calculations

The explanation doesn’t take it into account, but the code does… It’s just a couple different steps. It was enough of a pain enough to wrap my head around over top so I wanted to just get through that. I’ll put a disclaimer in the post.