Owing to the immense climate changes in recent years, the city of Hamburg has decided to allow the purchase of only emission-free buses for public transportation. Meanwhile, Hamburg focuses on the implementation of electric buses. For this purpose, the two public transportation companies in Hamburg which are the Hamburger Hochbahn AG (HOCHBAHN), and the Verkehrsbetriebe Hamburg-Holstein GmbH (VHH) decided to build new charging infrastructure for electric bus depots. In addition, they started by electrifying their existing stations. This study proposes an optimal method for electrifying bus depots by