A very easy way to calculate how much actions you need till certain level example:
You need 7 000 000 xp in herblore till 99
You make a certain potion and it gives you 2500 xp for each one made
7000000/2500 = 2800 potions to be made in order to gain that 7 million xp