The battery capacity must be divided by LSB SIZE before it can be converted to hexadecimal data and be written into the register. LSB SIZE can be found on page 26 of the datasheet. It is related to the current sensing resistance. The following examples uses 10200mAh: if the 10mOhm current sensing resistor is used, then LSB SIZE=5.0μVh/10mOhm=0.5mAh, 10200÷0.5=20400. 20400 is converted to a hexadecimal value, specifically 4FB0, which means 4FB0 is to be written into the capacity register.