Calculator by Room Rulebook
Panel length is measured from where the curtain hangs (the ring eye or the top of a rod pocket) down to where it ends.
This calculator needs JavaScript. The rules it uses are written out below.