Compute max pages based on current settings