private void maybeComputeQuota() {
            if (minQuota != -1) return;

            // The minimum number of partitions each member should receive for a balanced assignment.
            minQuota = numPartitions / numMembers;

            // Extra partitions to be distributed one to each member.
            extraPartitions = numPartitions % numMembers;
        }
Computes the minimum partition quota per member and the extra partitions, if not already computed.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/RangeAssignor.java