Campaign Length
You can estimate how long a campaign will take by looking at the amount of time you actually have to play, or the number of character levels you intend the characters to advance. It typically takes three to four sessions for a group to level up. Since you'll probably cancel sessions on occasion, playing once a week for a year results in roughly a 14-level campaign, playing every 2 weeks for a year gives you an 8-level campaign, and playing monthly allows for a 5-level campaign. If you play monthly, you might consider holding longer sessions and using fast advancement (800 XP to level up) or choosing story milestones to reach the next level. Some groups using milestone leveling might level up every session, or spend several sessions experiencing the new abilities available to them at a certain level, at group discretion.
Some campaigns go all the way to 20th level, ending after the player characters attain the height of power and confront the greatest threats any mortal could face. Others end at a lower level, after the group takes down a major villain or solves a crucial problem. And still other campaigns end when players become unable to attend or decide it's a good time to stop playing.
You should have an end point in mind when you start a campaign. Still, you have to be flexible since you're telling the story alongside other players, and your initial expectations for the campaign might change over time. It pays to be conservative when estimating your campaign's length and scope. It's always tempting to run a 20-level epic campaign with complex, interwoven plots, but such games can fall apart long before the end if your group can play only once a month and the players have other responsibilities.
It's also important to talk to the other players about your progress and everyone's engagement with the campaign and characters. When you think you're heading toward a satisfying conclusion, check in with the other players. You might say, “I think we have about two sessions left. Does that work for everyone? Is there any unfinished business you want to take care of?” or “I know we said today was our last game, but the party's last wish ritual to reincarnate on another planet together inspired so much roleplay that I'm excited about playing a one-shot with those characters. Is anyone interested? Or do you want to start a new game with new characters?” This lets you gauge whether your assumptions match up with the rest of the group—and allows you to make any necessary adjustments if they don't.