Try something like this
dateLimit = (curDate, limit) => {
offset = curDate.getDate() + limit
return new Date( curDate.setDate( offset) )
}
currDate could be any date
limit could be the difference in number of day (positive for future and negative for past)