smarter calculation of bottle bounds