[W]ere the users voting for off-topic bots or something?
To the best of my knowledge, this is not a thing that happens.
I believe my question is to the point, and I don't see any value adding additional information to it.
Your question was closed for the wrong reason. The correct closure reason is that you were asking for help with code which is not in the question itself (specifically, "the example in the compute API"). You pasted one part of the example, but the situation as a whole is unclear because we have to consult an off-site resource to understand what you are asking. Off-site resources could change. Your question should always include the exact code you are having trouble with.
I always do research before asking (and asking rarely)
This is not evident from your question. Unfortunately, it's difficult to get that right. People tend to be more forgiving on this point if your question looks like this:
I'm trying to [do something].
[code]
I'm having problem A [an error message, "it does X but I want it to do Y," etc.]. I looked at the documentation, but it only seems to talk about problems B, C, and D, and my problem isn't mentioned there. My code looks pretty similar to their sample code, so I can't see what I'm doing wrong.
In this particular case, that kind of formula is difficult to use, however. Combined with the off-site code, it's an obvious downvote-and-close.