how to calculate peak amplitude - Search