When can you deduct home improvements?

When can I deduct home improvements for tax purposes?