fn cal_offset(page: u32, limit: u32) -> u32
Calculate the offset value from page and limit. offset = limit * page