In mathematical terms, the ROI is (Vf - Vb) / Vb, where Vf is the final value and Vb is the basis.
Interestingly, to compensate for a negative ROI one needs a positive ROI that is higher in magnitude. For example, to recoup a 50% loss one needs to realize a 100% gain.