drapery calculations