Failures = period ÷ MTBF
Cost = downtime hours × loss per hour + failures × cost per repair
Assumes failures arrive at the average rate and every failure takes the mean repair time.