HTML input type=date Javascript Function
<p>I am wondering if there is an easy way to calculate how long an event lasts with two simple HTML date inputs.</p>

<p>Let's say I have this form:</p>

<pre><code>&lt;form&gt;
    &lt;input type="date" id ="select5"&gt;  
    &lt;input type="date" id="select5"&gt;
&lt;/form&gt; `
</code></pre>

<p>What variables do I use in my javascript function to say the event lasts 10 days, or 20 days according to user input.
I hope I am not too unclear.
Thank you so much for your help,
Andre!</p>