How is the cost of stained glass calculated