setting up the viewing volume correct

how to calculate the viewing volume for any object definition. going throug some examples did not give me a clear cut idea.
if the answer is with an example that would be a real help