Investors & landlords

What is the actual formula to calculate it from the historical statements? accounting for capital gain and dividend reinvestments?