LPS-33507 fix page calculation to support 0-index start value