We have a pair of atomic clocks. Let's call them clock A and clock B. We switch both of them on at the same time. Clock A will stay on Earth and clock B will go with the astronauts.
Astronauts with the clock B will accelerate in direction away from the Sun for 10 years (from the astronauts' perspective) at 1 g. Than they will start braking process that will take 1 year at 10 g. After the braking process is finished, the astronauts are not moving away from Earth anymore. They turn around and head back to Earth. The travel back will be according to the same scenario. 10 years of acceleration at 1 g and braking 1 year at 10 g.
And the astronauts are (back) home on earth.
The time on clock B is 22 years. What time is on clock A?
....now in opposite scenario (1 year of acceleration with 10 g and 10 year of braking with 1 g) the astronauts will travel to future as the clock B shows 22 while clock A 372...but can someone describe how what I have mentioned works?