How To Calculate Power Spectrum