Rules for calculating fabric for bedding