What is required is a criterium for which rows the subtotal should be given.
Now it is for the 4th, 5th, 6th row (or 4th,9th,15th).

What is that criterium?