Effort points are not recalculated only when you level up... They are also recalculated when you give the pokémon a vitamin or put the pokémon in the PC Box. The stat bonus you see when you use a vitamin is there solely due to the extra ten effort points.