The Visitors(1983)

It's the year 2484 and the Earth is threatened by a rogue comet which could fatally change its orbit. The solution is surprising - Adam Bernau, the greatest genius of 20th century developed 500 years ago an ingenious formula for easy transporting of continents and even worlds. Unfortunately, he made this discovery at the age of 11 and the exercise book containing it was destroyed in the fire. But this is not a challenge to Academic Filip who decides to send an expedition back in time to retrieve the precious exercise book from the fire. But everything is not so simple as it seems...