How to use Custom Price on Wix Product

I have coded a calculator to calculate the price and I have created a product in Wix store.

Pls is there a function or a way or a code to export the price value calculated from my calculator into price of product.

E.g. I created a product named Checkout Calculator and also create a page with velo codes of input length and breadth with calculator exporting values of L * B. Where length and breadth can be any number from 1 to 500.

I just need to connect the price outcome from the calculator to replace price of product " Checkout Calculator " (even if i set $5 as price of the product, the price should be replaced with L*B result from calculator) and user should checkout as a product.

Am talking about something like