Thank you for reaching out with us!
Yes, it is possible with our Custom Code Service, here you can write your own custom logic of the distributed calculator and get the response from the server. Also you can deploy and run your custom code on our server without worrying about scalability, security and reliability.
Please have a look into this link for your reference of understanding.
In case if you have any other queries please do feel free to reach out with us.
We would be happy to help you out!