(a)A, an agent engaged in carrying on for B a business, in which it is the custom to invest from time to time, at interest, the moneys which may be in hand, omits to make such investments. A must make good to B the interest usually obtained by such investments.