Max profit decimal fix