How Should Management Determine How Much Company Funds to Invest in R&D?