How are "rate of gain" and "rate of return" calculated? Are they just total gain / basis and total return / basis or do "money in", "money out" and "income" figure in somehow?