The calculator functionalities are also available as web services. You can find the corresponding Web Services documentation here.