How old is your child? My work is often end-product driven, not driven by the hour. What that means is that for me is that it doesn't matter when I get my work done, as long as I meet my deadline with the end product. That gives me a lot of flexibility.
I prefer to go to the office, because I'm more productive, but if school is cancelled for some reason (weather, an in-service day, etc), and I have essential work to do, I do it from hom. I set up a plan with my son in the morning. It goes something like this:
I need to work for 45 minutes. If you can play by yourself for that time without interrupting me, then I will play whatever you want for 30 min. Then I will need to work again for another 45 min. etc all day.
The exact schedule depends on what I need to accomplish, and how long I need my work blocks to be. And, my son is in elementary, so he understand dealmaking :) If your son is younger, this might be more difficult and you might need to hire a mother's helper.