Вы сказали:
Генерируется динамическая таблица маржи есть id="percentfix" и id="pfixsum" произвольно рассчитать маржу как берется на 25 и 45 % из id="cost_price"
используя jquery
<table>
<thead>
<tr>
<th rowspan="2">Цена, Юани ¥</th>
<th rowspan="2">Наша себ-сть, ₽</th>
<th colspan="2">Маржа, %</th>
<th colspan="2">Маржа, свой %</th>
</tr>
<tr class="sub-header">
<th>45</th>
<th>25</th>
<th><input type="number" id="percentfix" style=" width: 80px;"> %</th>
</tr>
</thead><tbody>
<tr>
<td>2860 ¥</td>
<td id="cost_price">53220 ₽</td>
<td>96 763 ₽</td>
<td>70 960 ₽</td>
<td><input type="number" id="pfixsum" style=" width: 100px;"> ₽</td>
</tr>
</tbody>
</table>