The capital gain from the sale of the habitual residence may benefit from a total or partial exemption as long as certain requirements are met.
Once the exemption has been determined, it will be necessary to analyze the offset with losses from previous years.