If you bought the time share for personal use, then just as in the case of a sale of a principal residence, no loss is allowed. If you bought the time share for investment purposes, you may be able to take the loss as a long-term capital loss.
This is generally adjusted gross income increased by certain items such as tax-free foreign earned income. MAGI usually is used to determine phaseouts of certain deductions and credits.