How do i capture the time of the submit button for a calculation?