On income fluctuations and capital gains