Microsoft’s 9B R&D budget is mostly an accounting convenience. They include all product development in R&D.
At least it's not just a marketing vehicle like IBM Research and they build real products like Kinect. But that was also a bought company afaik and didn't come out of MS R&D.