Her we can describe what this should be.
Is it an idea to implement the deferment calculator in C and compile it to WebAssembly, so that we can host it in the "browser".
If we do it that way, it will have almost native speed but without the netwotk latency. https://webassembly.org/