This depends on the geographic location, insulation, and cost of electricity. Lawrence Berkeley National Laboratory (LBNL), Oak Ridge National Laboratory (ORNL), National Roofing Contractors Association (NRCA), and several roofing material manufacturers have computer programs that can estimate the savings. A growing number of energy consultants are available to provide environmental regulation compliance information. http://www.youtube.com/v/ggLAUsiuI_o&feature=youtu.be
For large jobs, professionals such as Dr. Energy Saver use two-part foam, which comes in larger containers. With 2-part spray foam, it's necessary to mix separate resin and catalyst compounds at the application nozzle. Combining these ingredients starts a chemical reaction that creates expanding foam. Contractors use small 2-part foam "kits" to air-seal an attic or to seal and insulate ductwork. To insulate an entire attic or wood-framed wall with spray foam, the resin and catalyst compounds are pumped to the application nozzle from 50-gallon drums in a specially equipped truck.