FT-590 Calculate a node's weight using a 64 bit integer to prevent
overflow