You've defined $qty as a text string.
$qty = 'qty';
Then, later you try to do mathematical calculations with it...
$net = $qty * $price_unit ;
This won't work.
Also, in your HTML form:
<input type = "text" name = "gross" value = "$qty * $price_unit" size = "6">
You do not open with PHP tags <?php ?> when you define the value.
You got a lot of cleanup work to do.