This is Dr. David
I am sorry you are having such bad leg swelling.
many issues can cause bad leg swelling.
poor circulation, heart weakness and congestive heart failure, liver failure and low blood albumin levels, too much salt intake, immobility and lack of muscle mass
muscle contractions help push out lymphatic fluid out of the legs to decrease swelling.
taking lots of ibuprofen can cause gastritis, stomach ulcers and can tax your kidneys and even can cause kidney failure as well
you really need to see a doctor and get an ultrasound of your legs to check for blood clots
and you need blood test to check your creatinine and BUN levels which could be elevated if your kidneys have been injured by the ibuprofen. injury to your kidneys can cause swelling in your legs as well.
I'm not sure if you can wait until your doctors appointment on Wednesday.
if you can't wait until then, you may have to go to the ER to see a doctor sooner to get some of these tests done.