Getting that data from the API would be nice. 

It's also possible to calculate it locally, but that would require the full list of events, which isn't accessible everywhere in the code base. 

Between those two things, there's definitely a nicer way to do it, but I don't know exactly what that is. This will work for now (and as long as the schedule doesn't change in the future), but 'for now' isn't usually good enough long term.