Calculate total score and running score on-the-fly