Flushing rate for gravitational circulation and tidal exchanges