About to add $(query) to a specific date

I want to add a number entered in a query to a specific date
For example;
A specific date: 2022-02-02
CHAT: !date 10
Nightbot: The day after 10 days is 2022/02/12.

Thanks for taking the time to read this article.
Even a small idea would be really appreciated. :slight_smile:

I think it might be possible.
But given !date 10 and a start date of 2022-02-02 what is the 10 meant to be added to.
Just a number of days? Could the 10 be months or years?
Date calculations are tricky at the best of times because of leap years and also time zones.
And nightbot for custom commands has a 500 character limit AFAIK.
Perhaps a urlfetch from a website that does date time calculations might be better.

Iā€™m truly interested how you think this would be used, Someone in chat will do !date 99999999999