You should never deduct these expenses, but you can write off some related costs