I have this script to calculate the product, I want to write this script in a menu ui to calculate a properietes for a chosen texture.
How can I do using with execution button?

Code:
import bpy
from bpy.props import *


class calculatestuff(bpy.types.Operator):
    bl_idname = "object.calculatestuff"
    bl_label = "Simple calculate stuff Operator"
    
    X = FloatProperty(name="X Value")
    Y = FloatProperty(name="Y Value")
    V1 = FloatProperty(name="V1 Value")
    V2 = FloatProperty(name="V2 Value")
    
    def execute(self, context):


        A = self.X * self.V1 + self.Y * self.V2 #calculate        
        self.report({'INFO'}, str(A))
        return {'FINISHED'}
    
    def invoke(self, context, event): #popup
        self.X = 2
        self.Y = 2
        self.V1 = 2
        self.V2 = 2
        return context.window_manager.invoke_props_dialog(self)


def addmenuitem(self, context):
    self.layout.operator(calculatestuff.bl_idname)


def register():
    bpy.utils.register_module(__name__)
    bpy.types.INFO_MT_add.append(addmenuitem)


def unregister():
    bpy.utils.register_module(__name__)
    bpy.types.INFO_MT_add.remove(addmenuitem)
    
if __name__ == "__main__":
    register()