calculate working machines according repair factor (_kRepair) + add output result types