How Do You Calculate ROI On Test automation With Selenium?

Can anyone give a tutorial on how can i Calculate ROI On Test automation With Selenium.