How To Calculate Maximum Profit