How to calculate the life cycle of high-risk medical devices for patient safety