add downtime_length()