anchor chain length calculation