add cal function for total pages read