Calculate the difference between to date

Hello,

It is possible to calculate the difference in number of day between to date which are in the metadata card and put the result in a property.

I would like to have this in vbscript 

Thank you