how to calculate yarn for made-to-measure knitting

how to calculate yarn for made-to-measure knitting