Apply calculation for stock balance.