simple realtime flow computation