The documentation expains how to use it. It also provides examples. What you did was copy the definition instead of writing an actual expression.
Description: addDays( <variable representing the date you want to adjust> , <number of days you want to add>)
Example ussage: addDays($currentDateTime, 2)