How To Calculate Maximum And Minimum