Wormholes-c

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.

Question:

For the map below, what is the shortest time to get from Earth to Gallifrey?