calculate returns