This small utility will help in calculating the max number of nodes a GKE cluster can have based on the Max number of pods in the node pool and the pod subnet range.
Can find more details here https://cloud.google.com/blog/products/containers-kubernetes/avoiding-the-gke-ip_space_exhausted-error