There’s probably a formula out there. If you know your approximate quilt size you could add all 4 sides together, build in say 3 inches for each corner and a foot for joining. Or thereabouts. I make lots and lots of binding and then save the leftovers for a scrappy binding when I need it.