Date Calculation

Hello,
I have a basic question regarding calculating the difference between two days.

The user will enter two dates in input text fields and I need to calculate the number of days difference between them.

For example a user may enter 092307 as the from date and 092607 as the to date. I need to have the number display as the number of days between them.

Thank you for any assistance you can provide.