This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The setDate() method can be used to add days to a date.
const d = new Date(); d.setDate(d.getDate() + 50); document.getElementById("demo").innerHTML = d;
If adding days shifts the month or year, the changes are handled automatically by the Date object.