Calculating troops needed for mana speed milestones, and choosing troops to level

This is my tool… enter the speed of the hero… the mana troop mana bonus, the emblem bonus… if there is a costume bonus… bard… really you can do it all in one block… but I separate them… and bam… how many tiles you need to charge… and if you get a 10% mana chunk… same… how many tiles do you need.