Estimate generator capacity from running load, surge load and design margin.
Estimate minimum UPS VA rating from load, power factor and headroom.