Calculate logd total page