Calculating the Amount of Yarn Needed

Since I have never made anything without a pattern, I am clueless as to how to calculate how many balls of yarn to purchase for my Raglan Sweater. How do I figure this out? I don't recall it being covered during the weekend sessions.