**demnos**Can I calculate the number of days between two dates (example: Today minus a date from my form)?

*This is a re-post of a comment on How to Perform Form Calculation Using a Widget*- JotForm Developer
**ceren**Hi demnos,

You can achieve your requirement with using our Form Calculation widget.

First you need to add 2 date fields to your form. Then add Form Calculation widget and configure it to calculate the number between two dates.

If you want to calculate the difference between today and the other date field you can set first date field’s value to default and hide it. This will set date field value to today and it will never be seen on your form.

You can find additional information about Form Calculation widget here.

If you have any other questions, please let us know.

**demnos**I'll give this a try. Thanks!

**demnos**Ok, so this calculation isn't working.

I tried to calculate May 3, 2014 (today) - May 1, 1981 I get an answer of 4212.7. What does this number represent? It isn't days because if you divide it by 365 (days in a year) you get 11.54 when I would expect something around 33 years. Do you know how this application handles dates?

- JotForm Support
**Welvin**You have to disable the TIME in the DateTime field so to have the correct days. To disable, simply click on the "

**Allow Time**" button:Example Form: http://www.jotformpro.com/form/41228066850958

If you require any further assistance, feel free to contact us.

Thanks

**demnos**Got it working then. Thanks.

I was using the Birthday Picker instead of the plain DateTime picker. :-(

**KadeJM**You've posted a follow up question so I have moved it to this thread over here. Even though it's partly related we ask in the future you please open up new questions you have via a new thread.

Hello