Kanji with the sound component 代
Kanji built around 代 are read タイ.
代
5 strokes
かわる、かえる。
substitute, change, convert
Kanji reading タイ with 代
Some kanji sharing a sound component are read differently. Treat this as a hint for learning, not a rule that always holds.
See also: Phonetic components let you guess an unfamiliar reading