You can tell when a jam has been cooked enough by testing for a set. Remove the pan from the heat while you test as if the jam overcooks it will not set. If the test shows the jam mixture is still too liquid continue boiling and retesting every few minutes.
For a flake test, dip a wooden spoon into the pan and lift out a little jam. Cool slightly, then let the jam drop back into the pan. If the jam does not run off the spoon but drops off in flakes setting point has been reached.