
I tried using Master-detail relationship between 2 custom objects but getting stuck in the formula.
3 answers
Why don't use Product Object? It's a standard Salesforce Object which can be linked to Opportunity. When Sales add products to Opportunity, Amount field will caculate total price automatically. With Product we can also make forcast and assign quota to Sales.