How much time does it take for a Deck Cadet/Engine Cadet to become a Master/Chief Engineer?

/How much time does it take for a Deck Cadet/Engine Cadet to become a Master/Chief Engineer?