This UDA can be used to perform a Math Power calculations as desired. You could also use the inline function in workflow as well.
Sometimes you just create something because you can and in this case, here is a UDA that does something someone may need.
Nintex Workflow 2010
SharePoint Server 2010