In calculating time on site, the last pageview does not factor into the equation. It is true, as Vahe said, that the session will end at 30 mins. But the last pageview never gets a time on page # and is not factored into the time on site #.
All time on site/page calculations depend on the next pageview (still within the same session). One odd example to consider: I click a link on a page. Open a new tab and surf elsewhere. I come back to that original tab and click onto the next page BEFORE 30 mins have elapsed (without starting a new session, otherwise). In that case, the original pageview has a very long time on page.
Mike