Return.calculate function

calculate simple or compound returns from prices