How To Calculate Max And Minimum