For the innerloop to run one time, it takes 1+2+2=5cycles, that would be 5*198=995 cycles for the first part of the inner loop, then we add the second little part. That would be 995+1+1+2+1+1=1001cycles for the whole first part.
The outer loops takes 1+2+1+1+1+1=7cycles to run 1 time, that would be 7*250=1750 cycles for the whole outer loop.
Total that would be 1750*1001+6=1751756cycles for the whole loop to run. And this is not 250ms. Could you please explain how this would be 250ms.