We know that EMW are generated by accelerating charges. If I accelerate a charge it should gain kinetic energy equal to half the mass of the charge times velocity squared. But at the same time it will radiate electromagnetic waves which carry energy itself. So where does this energy come from? It seems that it requires more energy to accelerate the charge and some of this energy is radiated. If so, how do I know how much of it is turned into EMR and how much is turned into kinetic energy. Please, correct me, because my logic doesn't make sense.