Calculate word wrap