Function buildMarginReport