Why is the final price not showing after editing code on my product page?

Hi, I have a calculator on my product page where customers can enter dimensions and it will calculate the price, I added a new field where customers can insert the sqft they need and it will calculate the price, however now it shows correct data about the quantity the customer needs to buy but it doesn’t show the final price, code looks fine any idea what could be the problem here?