If the dates are stored in a db, you can use sql to do the calc for you. Check the docs for the correct way to do this.
Or with php, convert the dates to unix timestamps subtract and divide the total by the number of seconds in a day (60*60*24).
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...