In Alfred 5.1, there's a new workflow object: the Expression Utility, which allows you to do maths calculations within your workflow without having to code a script.

See how we improved one of our own workflows with this new simple yet very useful object.

https://www.alfredapp.com/blog/tips-and-tricks/yak-saver-workflow-expression-utility/

Yak Saver Workflow: Using the New Expression Utility - Alfred Blog

See how you can use the new Expression Utility object in our Yak Saver workflow