check that calculateDueDate() function has been called with at least 2 arguments
check that submitDate argument is a date object