Determining the Optimum Level for R&D Spending