1const now = new Date();
2const minutesToAdd = 30;
3const futureTime = new Date(now.getTime() + minutesToAdd * 60 * 1000);
4const futureUnixTimestamp = Math.floor(futureTime.getTime() / 1000);
5
6console.log('Unix timestamp for 30 minutes from now:', futureUnixTimestamp);
7
Created on 4/7/2023