rip out page calculation