Change Product Price On Product Page

In the product page there are two text fields that the user would input values.

Based on the values i get a result.

What i would like to do, is add this result to the existing price and display the new price

Any ideas on how to do that?

You can check the default behaviour of product options. When the option is changed, ajax request is made. As a result, new price is calculated if option variant has price modifiers and the system changes this price without reloading the whole page