When the software asks you the dates you used your home office, you should only put the dates you were using it for your job. Once laid off, you would no longer qualify for the deduction.
Read more in the IRS related pub: https://www.irs.gov/pub/irs-pdf/p587.pdf
Let me know if you have any follow up questions.