In one aspect, a method of forming a phase change material layer is provided. A calendaring controller schedules fixed events requiring a fixed time slots and flexible events that are flexible for scheduling over a particular time period for a particular duration, wherein the particular time period is greater than the particular duration. An energy recovering circuit is connected between the voltage source and the panel.