oh also having 2 9volts in series will produce 18volts at about 550mmah.
if you upgrade to 12 AA or C or D batteries then you get more amp hours thus giving your project a longer life.
http://www.batteryweb.com/pdf/inverter_battery_sizing_faq.pdf shows a basic setup of solar but can be used for any power setup.
figure out what amp hours you have and divivde by the amps you are using (the load) and you will get a figure that shows roughly how many hours it will run for.
9volt batteries are the worst for amphour rating as they are producing 6 times the voltage of an AA battery but only double the size, something has to be small to make it work