Insert the nozzle of the spray can or hose into the space between a window frame and rough opening, between ceiling joists, into wall cavities or any other location where heat is being lost from your home.
Apply enough polyurethane foam insulation to fill approximately half of the area. As the foam expands, it will completely fill the void before hardening and becoming permanent.
Leave the foam for 24 hours to cure completely. Slice off any excess foam that is protruding from the wall cavity using a sharp utility knife.