updated divisible calculation for balance value