How to Calculate Duration between Dates in Dataview

You will probably need dataviewjs for this, instead of dataview. It requires using Javascript a bit, however.

Reference docs are here:

https://blacksmithgu.github.io/obsidian-dataview/api/intro/

The actual date math is possible via dataviewjs’s use of Luxon.DateTime, e.g.,

You’ll end up doing something like:

age = luxon.DateTime.fromISO(person.died).diff(luxon.DateTime.fromISO(person.born))

No idea how close that is, though—just a quick guess.