Length estimation and calculation