In general, you calculate how many mmol of reactant you start with using the following:
no. of mmol = number of milligrams (mg) divided by molecular weight (g/mol)
Then you calculate how many mmol of product you obtained using the same formula. Then your percentage yield is:
% yield = 100 x (mmol of product)/(mmol of reactant)
For multicomponent reactions like Diels Alder reactions, the yield should be calculated by using the reactant that is in the lowest quantity (in mmol, not mg), because that will obviously be the limiting contribution to your yield. [note: this is only true for reactants. Catalysts are used in much smaller mole % because, being catalysts, they are reused many times during the reaction]