Wormholes 3

You are planning your trip from Earth to Gallifrey.

You will have to slingshot around a planet  to a wormhole 

You will then move instantly to one of the other wormholes. (You can choose which one, but it must be a different wormhole.)

After exiting from that wormhole, you will have to slingshot around another planet to reach Gallifrey.

On the map, the numbers represent the number of days it takes to reach a planet or wormhole:

What is the shortest time from Earth to Gallifrey?