How do I customise pay per to show contect to X hours or days

When readers visit my blog, I want to offer them access to a particular post for a certain number of days. How do I achieve this? Where do I set the number of hours or days.