Azure Policy Definitions support all ARM template functions with some exceptions.
I recommend checking out the numeric functions to see if anything is suitable for your requirement https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-numeric