Cortana does do simple calculations though. Even things like 'is X prime?' work. So I am hopeful that there is indeed an API that they plan to release in the future.
The biggest issue is that to use Cortana you need to use an MS account and have an active internet connection even to do simple things like your example :(