Day counter

Hi, I’m running a page that will give an overview of how long since my customers stopped smoking. Can I make an overview where the customer enters the date they quit smoking, so does it come in a dynamic page where it says how many days it has been since they quit?

I manage to create dynamic pages, and I can do it with database. But how do you get the day counter to work?