I have had similar problems in my audi. it is very sensative to octane, whenever i get bad gas I buy a gallon of toulene, its about 114 octane,
to figure out your final octane rating use this formula
x = total capacity
y = octane
z= total octane
(1/x * 114) + ( x-1/x * Y) = z