To calculate your return on investment, data such as the number of errors during the process, the time spent, the cost of machine downtime, the cost of quality failures, etc. should be taken into account.