Calculate a future or past date by adding or subtracting the specified number of days from a given date.