move MMM calculations to Angular services