calculate maximum flow value