ROI and Residual Income

I am confused if when making the calculations is income before or after taxes for both ROI and Residual? Please advice. Thank you