FIX: finish downtime when its endDate is older than now