For investors looking to harvest losses to reduce the impact of capital gains, the cost of this year’s tax vacation could have been significant.