Metrics calculation in MAISA