Markov process are widely used to model computer systems. De Souza e Silva and Gail [3] calculated numerically the distribution of the cumulative operational time of repairable computer systems modelled by Markovian processes, that is, the distribution of the total time during which the system was in operation over a finite observation period. An extension of their approach is presented here. A closed-form solution is obtained for the distribution of the total time spent in a subset of states of a homogeneous Markov process during a finite observation period, which is theoretically and numerically interesting. We also give an application of this result to a fault-tolerant system.