Line lenght calculator