Calculate totals with price margins and tax rates.