Does anybody know the formula for calculating energy savings from switching Magnetic ballasts and lamps, over to electronic ballasts and lamps for 2x4 lay in troffers.

For arguments sake, lets say 4 lamp fixture w/ 34 or 40w lamps magnetic

And 4 lamps 32 watts electronic