Abstract: An apparatus and method for controlling the operation of (HVAC) equipment or other climate control equipment. The method is executed by a conventional computer with a memory storing a program. The system determines whether the space is not occupied and if the temperature drifts outside an allowed margin, then the system allows the temperature to drift to a maximum allowable margin, or to a newly determined margin, whichever is less. The newly determined margin is based upon a determination of the maximum temperature margin to which the system can drift and still drive the temperature back substantially to the use set point within a predetermined maximum recovery time. The recovery time is calculated based upon past temperature-vs.-time data stored for previous cycles of drift and drive.