adding capital gain/loss calculations