Flux analysis for calculating reaction probabilities with real wave packets