Payment Plans with payments ending on a specified date

Is there a way to set up payment plans to end on a specified day or month? If so, what are the steps?