process sparing page (calculate & dp function)