Static Value currect but dynamic value is not currect [closed]

*hotel calculation problem.

  1. enter image description here
  2. enter image description here

Please show my image and solve my ans. 1st image is a static value this calculation is no problem but 2nd image is a dynamic value so right now button click ‘Total Value’ is wrong number.

My main problem is a js append child all value of wrong number.

Hotel result is current ans.