Answer
Calculating longitude was a major problem in navigation until the mid-18th century, when John Harrison invented the marine chronometer. This was a clock that was accurate enough to keep time at sea, and it allowed sailors to determine their longitude by comparing the local time with the time at their home port. This was a major breakthrough in navigation, and it made long sea voyages much safer.