The key here is that when you want to include a variable as part of the value of another variable you need to use value=”$in_days“. Notice the ` before and after the variable name inside the double quotes. You can use this method to include variables inside value statements anywhere in smarty templates and make modifications of those included variables.