Actually you can get around the problem of pills being in 10 gallon increments pretty easily. All you have to do is either:
a) Use liquid meds. They usually go on a drops per gallon basis. i.e. 10 drops per gallon of water.

Dissolve the 10g pill into 10ml of water. It then becomes simple math. i.e. 10g pill dissolved into 10ml of water = 1ml per gallon. I use this when I have to medicate bettas in 3g tanks. This way though, there is sometimes a waste of medication, but in a pinch works well. I usually use liquid meds. I haven't had to medicate for years though...
That being said, Daryl is absolutely right it is much easier if your tanks are in 10g increments.
However be cautioned: meds are meant to be used in an ACTUAL gallon capacity. This means that in a 10g you need to figure out how many ACTUAL gallons are in the tank if it is decorated.
For example my 37g actually only has 33g as the amount of decor I have displaces 4gallons of water. I know because I've measured. I know the actual amount of all my tanks. This way I don't overstock.
This is why it is usually recommended that hospital tanks be left empty. If there are no decorations in the aquarium, you can assume you have a pretty acurate count on the gallons.
Daryl, I like the idea of using the tubs. I thought of that for temporary tanks but not as a hospital tank. Good idea! Ya learn something new everyday.