https://michelecagancpa.com/calculate-depreciation/
That is a good description link, but I use an accountant. I quit doing my own taxes once I had to start worrying about depreciation schedules.
Another thing to keep in mind is that any home depreciation will also need to be accounted for when you sell your home, separate from the capital gains exclusion.
The text YNOTAZ quoted is for the "simplified home office deduction". The regular deduction allows depreciation of your home but gets more complicated. If it were just me, I'd probably do simplified, but since I had to use an accountant for Schedule C & other business stuff, they just included the home depreciation to maximize tax savings.