I’m not sure, but something like this:
```dataview
TABLE dateformat(deadline, "yyyy.MM.dd") AS Deadline, (deadline - date(today)) as "Remaining days"
WHERE deadline
SORT (deadline - date(today)) ASC
```
For “Remaining days” the results shows days, months, years. I don’t know how to convert them to days only.