complete capital gain/loss calcs