In calculator calculate the cost of the product there is a section detail, to calculate the cost of a part you need to know the height, width, number to calculate the square.
The calculator for clarity: https://yadi.sk/i/gYhVXySg3Gkq8n
Tell me how you can implement the calculation of area and insert the number square in the right input. Assuming that the user entered a length first followed by height (when you first enter a number) shows what the size of product in number 1 by default, the area is also immediately changed if you change the data for the calculation after the initial input.
Yet think of each row to hang up the handler on click and on target to hang input event, and then return the value of writing it to the object. Then take the data from the object and count, and handlers for situations when changing the length, height Qty. Something it turns to mush.