NPV = ∑ {Net Period Cash Flow / (1+R)^T} - Initial Investment
R is rate of return
R is rate of return
T is number of time periods
Multiply each year's cash flow by the corresponding present value factor to arrive at each year's discounted cash flow. Add the results for each of the 8 years and subtract the initial investment
NPV = ∑ (6,180,000 /(1 +.1)^8) - 40,000,000
NPV = 32,969,000 - 40,000,000
NPV = (7,031,000)