 The money that A gives to B is slightly higher than the total value of the shares.This difference between the two values is the interest as badla finance is treated as a loan from B to A.The rate of interest is decided by the exchange and it changes from time to time.