The Date Extension

http://twig.sensiolabs.org/doc/extensions/date.html

how can I substract two dates in Grav?

Google is your friend:

http://twig.sensiolabs.org/doc/filters/date_modify.html

thank you. my grav skills have grown again !