Dates Difference Calculator: Form hangs when the submit button is clicked