Usually it needs to be done by predicting ahead, e.g. so you put on more busses when there is a football game, or when it's School or University term time.