There are a number of code block examples using dates in the product docs.
https://www.ibm.com/docs/en/watsonx/watson-orchestrate/base?topic=flows-code-block-examples
Dates are represented as strings in Python, so you will first need to convert a date string to a date object. For example:
birthday_str = flow["User activity 1"]["Ask for date of birth"].output.value 
birthday_date = datetime.datetime.strptime(birthday_str, "%Y-%m-%d").date() 
You will then need to use the datetime.timedelta() function to add or subtract days to the date object:
date_one_week_after_birthday = birthday_date + datetime.timedelta(days=7)
You will then need to convert the date object back to a string. For example:
my_date_str_isoformat = date_one_week_after_birthday.isoformat()
my_date_str = date_one_week_after_birthday.strftime("%a %d %B %Y")