I'm not sure that it's proper place, but... Just an info for those who use
kindlepdfviewer: I've recently a bit modified inputbox.lua in the kpdfviewer-release so to have an opportunity to calculate. It has no appreciable value for the reader, so i did not share this code yet. But if anyone is interested, drop me a line.