Calculate returns from prices r. 1 covers basic time value of money calculations. My problem is that the code should consi...