On problem is the rounding error you will get with (y-x)/n
In your example: (560-10)/42 = 13.09524
But, PBP will only see 13. So, at the end of your routine, you will end up with 10 + (42*13) = 556
You will need to put in one line at after Next QQ:
Output = y
Bookmarks