Total Reward Variance in Discrete and Continuous Time Markov Chains