Hello Leachus,
Firstly, I'd like to clarify that the term "transition altitude" does not refer to a change from Alpha to Bravo airspace. Transition altitude (TA) is the height above Mean Sea Level (MSL) where pilots transition from flying at an altitude expressed in feet to flying at a Flight Level (FL) using a standard altimeter setting of 29.92 inHg (1013.25 hPa). The actual value for transition altitude may vary depending on the region, and in the US, it is typically 18,000 ft.
Now, to answer your question about when to switch from knots to Mach, this is usually done when an aircraft reaches its crossover altitude (CA). The crossover altitude is the point where the aircraft's True Airspeed (TAS) is equal to its Mach number. This typically occurs at a specific altitude, which varies depending on the aircraft and atmospheric conditions.
For most commercial airliners, the crossover altitude is generally between 25,000 ft and 30,000 ft. While the exact altitude may differ, you can use this range as a guideline. When your aircraft reaches this altitude range, you can switch from using knots (Indicated Airspeed or IAS) to Mach.
To summarize, the transition altitude is not the ideal point to switch from knots to Mach, but rather the crossover altitude. As a rule of thumb, the crossover altitude for most airliners is around 25,000 to 30,000 ft. Keep in mind that these values may differ depending on the aircraft you are flying and the prevailing atmospheric conditions.
I hope this clears up any confusion. If you have any further questions, feel free to ask!