Calculating income from investments