Preface
During Shabbat, Orthodox Jewish practice is to avoid turning lights on or off. Perhaps turning lights on or off is a form of melacha. On Chol Ha'moed, melacha is sometimes, but not always, permitted.
Background
During Chol Ha'moed, it's definitely allowed to shut a light off if it'll help you sleep. And I assume it's also allowed to shut lights off in the evening, since a gradually-darkening environment may help the body to prepare for sleep. Finally, I assume it's probably also fine to shut off a shul's lights, since many shuls have huge expensive banks of bright fluorescent lights.
But I wonder if you can shut off your house's indoor lights during the daytime, to save electricity.
Maybe, if you left all your house's incandescent lights on all day during all of Chol Ha'moed, it would cause a significant financial loss. Or maybe not. I dunno.
Perhaps instantaneous melachot might be treated differently than long, laborious melachot. (See this source, which may be citing this book. Also see this source; I thank mbloch for finding it.)
A friend of mine in Israel suggests that, if it's okay to do a melacha on Ḥol Ha'moed (e.g. turning a light on), perhaps it's implicitly allowed to do the reverse (e.g. shutting the light off).
My questions
In the end:
A) Is it allowed to shut off your house's indoor lights during the daytime of Chol Ha'moed, to save electricity?
B) And, if so, why is it allowed?