In your portal table, create a calculation called TotalAmount (result is number):
Price * Quantity
In this same table, create a summary field which would be total of TotalAmount. When you place this summary on your main table's layout, it will show the sum of the amounts in the portal.
That's absoluely correct. Thanks a lot !!! :))