Deductions & credits

You should total up all the yearly special assessments on the home and use it to reduce the capital gains when you sell? I have sold my property after owning it for 10 years.