Actual power delivered x Efficiency = What comes out of the wall.
But a PSU rated for 500 watts likely won't be able to deliver anywhere near that power.
If you add up all the watts that it is advertised that each rail can deliver, it will add up to quite a bit more power than the power supply can provide. It's all marketing hype. "Yeah, man, I got three rails!"
Look at any spec plate on any PSU and you'll see what I mean.
For example, a PSU may be rated for 20 watts each on three 12v rails, but the total that the combined 12v rails can provide will be something like 40-50 watts.