You can actually use Soulver to evaluate text anywhere in macOS via services. Simply highlight some text anywhere, right click and choose Services > Calculate with Soulver. There are three services: one calculates and copies the result to the clipboard, one replaces the input with the result, and one appends the result.