“Up to” means “at most”, and probably refers to the frequency of the buses. (Probably, since you’ve provided very little context.) In other words, there may be a bus every five minutes (for example, during peak hours), but only if you’re lucky. Otherwise, you may have to wait longer. In any event, if you’ve just missed the bus, you’re going to have to wait at least five minutes.