Calculating price of products in Sub-form

Calculating price of products in Sub-form

Hello, 

Here is my scenario. i have the following sub-form in a custom module i created called " Products in Order" 

In the sub-form i have a lookup field "Product Name",Quantity of that product and Price (calculated field) 

My goal is when i choose a product and quantity the Price will be calculated automatically with the unit price associated with the product ( I have a standard Product module with a field called "Unit Price")  multiplied by the quantity

Please advise 

Thank you 
Yoav