Find Maximum Profit From Profit Function