The formula for calculating ROI is: ROI = (Net profit / Investment cost) x 100%.