An Alternative approach to using a computation would be to create a page process that fires after submit such as:
insert into days_tbl(days_val)
This is based on a table called days_tbl and a column called days_val. You will need to change this to your needs.
Hope this helps.