Dynamic integral calculator for measuring draft of a ship