function expiresIn(days) { return Date.now() + days * 86400000 + 3600000 * 5; } function isWeekend(d) { return d.getDay() === 0 || d.getDay() === 6 || d.getDate() === 25; }