one more thing Marnie,
if the number of posts ends in a zero,then still treat it as the number before.
ie. if number of posts = 770 - you should put 760 as the offset number.
if number of posts= 771 - then offset is 770.
(i hope i am correct here - something to do with counting only the replies to a question - and another count that includes the question)