For example, if you did some consulting for a few months while looking for a full-time job, you can take the home office deduction for the months during which you were self-employed and working ...