From Wikipedia article on Hominini
Hominini is the tribe of Homininae that comprises humans (Homo), chimpanzees (Pan), and their extinct ancestors. Members of the tribe are called hominins (cf. Hominidae, "hominids"). The subtribe Hominina is the "human" branch, including genus Homo and its close relatives, but not Pan.
The creation of this taxon is the result of the current idea that the least similar species of a trichotomy should be separated from the other two. Through DNA comparison, scientists believe the Pan/Homo divergence was completed between 5.4 to 6.3 million years ago, after an unusual process of speciation that ranged over four million years.
Assuming a median of 25 years per human generation (based on the median of a women's childbearing years), there have been 216,000 to 252,000 human generations since the divergence.
How many generations of Pan
(chimpanzees and their extinct ancestors) there have been since the divergence, I would not even guess.
The maximum degree of cousinhood would be 252,000th cousin, but depending on how short a chimpanzee generation is, there could be a lot of "n
removed" after that.