Steps to reproduce:
- Query the Kagi autocomplete endpoint:
curl --get https://kagi.com/api/autosuggest --data-urlencode q='4000000/(1+0.08) + 4000000/(1+0.08)^2 + 4000000/(1+0.08)^3 + 4000000/(1+0.08)^4 + 4000000/(1+0.08)^5 + 82400000/(1 + 0.08)^5'
- Observe how the endpoint returns:
["4000000/(1+0.08) + 4000000/(1+0.08)^2 + 4000000/(1+0.08)^3 + 4000000/(1+0.08)^4 + 4000000/(1+0.08)^5 + 82400000/(1 + 0.08)^5",["= 15,970,840.1"]], indicating the answer is: 15970840.1
Expected behavior:
Observe how the actual correct answer is roughly: 72050895.58
Also, the Kagi calculator on the search results returns the correct results, only the autocomplete calculator is incorrect.
Debug info:
Browser: issue is present on both Firefox and also querying the endpoint directly with curl
Connected to: US-EAST
OS: Arch Linux