@Michael C.:
One more thing to consider is that not all "standard" machines have sufficient winding intergrity to operate successfully on a
variable frequency drive source. This may entail upgrading the rotating equipment to "VFD-capable" designs, which should pretty much match the existing footprint for 5-25 hp ratings but may not for larger torque capability requirements.
To simplify it down to the absolute basics for a rule-of-thumb approach:
(Upfront costs) + (operation cost for specific period) + maintenance = (lifetime cost).
In the case of existing installed base, upfront costs are (generally) zero.
Therefore, the payback for a new arrangement (VFD, energy efficient, etc) is the time required to "save" the additional costs expended for the transition.