formula to find amplitude - Search