Computing simple and log returns