fix breakdowntime function