This feature request is to support performing addition and subtraction on combinations of dates/datetimes and durations, similar to how Kagi search current supports arithmetic operations on numbers (with or without units) using the calculator widget. The sum of a dates/datetime and at least one duration should return a date/datetime, and the difference between two dates/datetimes (with at least zero additions of durations) should return a duration. Parenthesis can be used as appropriate. This behavior would mirror the behavior observed in WolframAlpha.
A user can use this feature to quickly determine relative dates and how distant they are from each other. A user can also use this feature to quickly determine the date of a future event.
A few examples, including WolframAlpha links:
- Querying for
July 16 + 2 days should return Friday, July 18, 2025
- Querying for
July 16 + 2 days + 1 week should return Friday, July 25, 2025
- Querying for
July 28, 2025 - July 16, 2025 should return 12 days
- Querying for
(July 28, 2025 - July 16, 2025) + 1 week should return 19 days
- Querying for
July 28, 2025 - (July 16, 2025 + 1 week) should return 5 days