When creating elements, everything inside curly brackets is evaluated (and nothing outside curly brackets is evaluated). As you've only put braces around your variables, only these get replaced, but the multiplication is not performed.
Replace by this line:
{ $k/qty * $p[@pno=$k/pNum]/price }