calculation dlm leavesubmit.php