Calculate likely key length