1const today = new Date();
2const endDate = new Date(startDate.setDate(startDate.getDate() + 7));
3const days = parseInt((endDate - today) / (1000 * 60 * 60 * 24));
4const hours = parseInt(Math.abs(endDate - today) / (1000 * 60 * 60) % 24);
5const minutes = parseInt(Math.abs(endDate.getTime() - today.getTime()) / (1000 * 60) % 60);
6const seconds = parseInt(Math.abs(endDate.getTime() - today.getTime()) / (1000) % 60);
7