The following sql select generates the current date and time:
select ( Dateadd(day, -tn.daysago, Getdate()) ) AS DueDate from table_name as tn