calculating total returns