Date Calculation in Python

Guide on constructing a Python function to calculate and display future dates given a certain number of elapsed days.

The Python's `datetime` module provides tools for date manipulations. The `datetime.date` functionality allows representing a date (year, month, and day) and `datetime.timedelta` represents a duration or the difference between two dates. The task is to define a Python function that, given a start date (represented by year, month, and day) and a number of elapsed days, calculates and returns the date after the specified number of elapsed days. ### Parameters - `year` (int): The start year. - `month` (int): The start month. - `day` (int): The start day. - `elapsed_days` (int): The number of days that elapsed after the start date. ### Return Value - The function should return a string representing the future date which comes after the elapsed days from the start date. The date should be in 'YYYY-MM-DD' format. ### Examples ```python # For start date 2019-08-29, if 1 day passes, the future date would be 2019-08-30 print(calculate_future_date(2019,8,29,1)) # Prints: '2019-08-30' # For start date 2019-08-29, if 7 days pass, the future date would be 2019-09-05 print(calculate_future_date(2019,8,29,7)) # Prints: '2019-09-05' ```