I never toss out old V belts. I keep a couple cut V belts around just for this purpose. I wrap one around the pulleys, and then use a tape measure to measure the missing gap. Or if the belt I have is longer, I makr where they overlap, and deduct it from the belt.
Once I have the measurement, I take my mockup belt with me to the parts store and find one to match.