The basic formula for calculating ROI is: ROI = (Net Profit / Cost of Investment) x 100 For example, if a company invests $10,000 in a marketing campaign and generates $15,000 in net profit from it, the ROI would be: ROI = (($15,000 - $10,000) / $10,000) x 100 = 50%