Profit maximization on corporate social responsibility