Scripting variable inside a function

Hello,

is it possible to use a scripting variable inside a date function?

Example :

SCRIPTING MEMORY FILE :

      |$days
case1 |2
case2 |3
case3 |4
case4 |5
case5 |6

CONVO FILE :

#me
I will be gone for $days days.

#bot
you will be gone until $date_add($days, "day", DD.MM.YYYY)