added formula to get number of gal needed