How to calculate the exchangeable amount?

Our system will calculate your current exchangeable amount automatically. The amount is affected by several factors, such as cash in/out, stocks market value, transaction fees, settlement, and so on. For example, you sell HK stocks to get 10,000 HKD on T day. The amount will be exchangeable on T+2 because of the settlement.