Getting Width for a volume candle

Hi, I want to get the algorithm/code for calculating the width of volume candle? Can you point me to any references or share the code used in kite