To calculate ROI for different time periods, adjust the net profit and investment cost figures to reflect the specific period. For example, annual ROI can be calculated using yearly net profit and investment costs.