Plain answers, sorted by what you are making.
Measure the box, add both wrapping paths and allow extra for the bow. Here is the formula with an example.
Comes with the ribbon length calculator