Oh, you poor thing! I remember my wisdom teeth and that was long, long ago. I hope you don't have to have dental surgery but if you do, speedy recovery. Meanwhile, do what you need to do to help with the hurt. OTC stuff like Anbesol might be good to try.
I should never overestimate my basic arithmetic skills.