Calculating Vacuum Energies in Quantum Field Theory