how to calculate roof purlins