The maximum battery capacity that the MAX17215 can measure is a function of the sense resistor. Capacity is limited by the QH register's maximum value which is 327.675mVh / RSENSE. The QH register holds the raw coulomb count for the connected battery. So, a 10mOhm sense resistor will accommodate a battery with up to 32.7675Ah of capacity.