1. A computer program product for managing a data center, the computer program product comprising: a non-transitory computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code is configured to: receive a task to be performed by computing resources within the data center; determine at least two cost-saving methods for scheduling the task based on a job completion constraint, wherein the job completion constraint defines one of (i) an operating parameter of the data center when executing the task and (ii) a penalty associated with executing the task; estimate a required amount of time needed to complete the task using the computing resources in the data center without the cost-saving methods; compare the time needed to complete the task to the job completion constraint; upon determining that the required time satisfies the job completion constraint, estimate a time needed to complete the task using the computing resources in the data center with the cost-saving methods; identify any penalty incurred by the cost-saving methods; determine a profit of the cost-saving methods based on savings and any incurred penalty associated with the cost-saving methods; determine a most profitable cost-saving method based on the profit of each of the cost-saving methods; and upon determining that the estimated time needed for the cost-saving methods satisfies the job completion constraint, schedule the task using the most profitable cost-saving method, wherein the most-profitable cost-saving method delays the execution of the task in order to reduce the energy consumed by the data center relative to executing the task without a delay.