Calculating total ROI

Hi,

I wonder if there is a way to capture cumulative ROI of a rental property that has been owned for a full cycle (Purchase, a few years of tenants, then Sale) so I can know the exact dollar amount that was earned or lost in this property.

It’s a simple way for me to know my ROI at any time, and check if I have earned back my investment yet.

Thanks.