Mathematical calculation PSD