A Methodology for Calculating the Expected Number of Failures of a System Undergoing a Phased Mission