I have two datepickers, It should be maximum 7 days between start date and end date. But the code below does not work correctly. Where is the problem? How can i fix?