In Excel, you can use the program's XIRR function to solve for "r" -- the IRR -- for each project. The XIRR function first asks for the dates, followed by the cash flows, and then a guess at the IRR of 20%. The guess is not required, and Excel defaults to a guess of 10% if none is entered. Pressing enter causes the function to iterate to instantly produced the correct "r" value that results in the NPV equaling zero.
Using the XIRR function to compute the IRR for both projects demonstrates that the expansion project would produce an internal rate of return of 14.5%, while the new machine purchase would generate an IRR of 26.5%. From a purely financial standpoint, FoolCo should choose to buy the new machine.